Class Ebs
- java.lang.Object
-
- com.amazonaws.services.autoscaling.model.Ebs
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Ebs extends Object implements Serializable, Cloneable
Describes an Amazon EBS volume.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Ebs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ebsclone()booleanequals(Object obj)BooleangetDeleteOnTermination()Indicates whether the volume is deleted on instance termination.BooleangetEncrypted()Indicates whether the volume should be encrypted.IntegergetIops()The number of I/O operations per second (IOPS) to provision for the volume.StringgetSnapshotId()The ID of the snapshot.IntegergetVolumeSize()The volume size, in GiB.StringgetVolumeType()The volume type.inthashCode()BooleanisDeleteOnTermination()Indicates whether the volume is deleted on instance termination.BooleanisEncrypted()Indicates whether the volume should be encrypted.voidsetDeleteOnTermination(Boolean deleteOnTermination)Indicates whether the volume is deleted on instance termination.voidsetEncrypted(Boolean encrypted)Indicates whether the volume should be encrypted.voidsetIops(Integer iops)The number of I/O operations per second (IOPS) to provision for the volume.voidsetSnapshotId(String snapshotId)The ID of the snapshot.voidsetVolumeSize(Integer volumeSize)The volume size, in GiB.voidsetVolumeType(String volumeType)The volume type.StringtoString()Returns a string representation of this object; useful for testing and debugging.EbswithDeleteOnTermination(Boolean deleteOnTermination)Indicates whether the volume is deleted on instance termination.EbswithEncrypted(Boolean encrypted)Indicates whether the volume should be encrypted.EbswithIops(Integer iops)The number of I/O operations per second (IOPS) to provision for the volume.EbswithSnapshotId(String snapshotId)The ID of the snapshot.EbswithVolumeSize(Integer volumeSize)The volume size, in GiB.EbswithVolumeType(String volumeType)The volume type.
-
-
-
Method Detail
-
setSnapshotId
public void setSnapshotId(String snapshotId)
The ID of the snapshot.
- Parameters:
snapshotId- The ID of the snapshot.
-
getSnapshotId
public String getSnapshotId()
The ID of the snapshot.
- Returns:
- The ID of the snapshot.
-
withSnapshotId
public Ebs withSnapshotId(String snapshotId)
The ID of the snapshot.
- Parameters:
snapshotId- The ID of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolumeSize
public void setVolumeSize(Integer volumeSize)
The volume size, in GiB. For
standardvolumes, specify a value from 1 to 1,024. Forio1volumes, specify a value from 4 to 16,384. Forgp2volumes, specify a value from 1 to 16,384. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.
- Parameters:
volumeSize- The volume size, in GiB. Forstandardvolumes, specify a value from 1 to 1,024. Forio1volumes, specify a value from 4 to 16,384. Forgp2volumes, specify a value from 1 to 16,384. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.
-
getVolumeSize
public Integer getVolumeSize()
The volume size, in GiB. For
standardvolumes, specify a value from 1 to 1,024. Forio1volumes, specify a value from 4 to 16,384. Forgp2volumes, specify a value from 1 to 16,384. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.
- Returns:
- The volume size, in GiB. For
standardvolumes, specify a value from 1 to 1,024. Forio1volumes, specify a value from 4 to 16,384. Forgp2volumes, specify a value from 1 to 16,384. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.
-
withVolumeSize
public Ebs withVolumeSize(Integer volumeSize)
The volume size, in GiB. For
standardvolumes, specify a value from 1 to 1,024. Forio1volumes, specify a value from 4 to 16,384. Forgp2volumes, specify a value from 1 to 16,384. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.
- Parameters:
volumeSize- The volume size, in GiB. Forstandardvolumes, specify a value from 1 to 1,024. Forio1volumes, specify a value from 4 to 16,384. Forgp2volumes, specify a value from 1 to 16,384. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolumeType
public void setVolumeType(String volumeType)
The volume type. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
Valid values:
standard|io1|gp2Default:
standard- Parameters:
volumeType- The volume type. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.Valid values:
standard|io1|gp2Default:
standard
-
getVolumeType
public String getVolumeType()
The volume type. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
Valid values:
standard|io1|gp2Default:
standard- Returns:
- The volume type. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute
Cloud User Guide.
Valid values:
standard|io1|gp2Default:
standard
-
withVolumeType
public Ebs withVolumeType(String volumeType)
The volume type. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
Valid values:
standard|io1|gp2Default:
standard- Parameters:
volumeType- The volume type. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.Valid values:
standard|io1|gp2Default:
standard- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeleteOnTermination
public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
Default:
true- Parameters:
deleteOnTermination- Indicates whether the volume is deleted on instance termination.Default:
true
-
getDeleteOnTermination
public Boolean getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
Default:
true- Returns:
- Indicates whether the volume is deleted on instance
termination.
Default:
true
-
withDeleteOnTermination
public Ebs withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
Default:
true- Parameters:
deleteOnTermination- Indicates whether the volume is deleted on instance termination.Default:
true- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDeleteOnTermination
public Boolean isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
Default:
true- Returns:
- Indicates whether the volume is deleted on instance
termination.
Default:
true
-
setIops
public void setIops(Integer iops)
The number of I/O operations per second (IOPS) to provision for the volume.
Constraint: Required when the volume type is
io1.- Parameters:
iops- The number of I/O operations per second (IOPS) to provision for the volume.Constraint: Required when the volume type is
io1.
-
getIops
public Integer getIops()
The number of I/O operations per second (IOPS) to provision for the volume.
Constraint: Required when the volume type is
io1.- Returns:
- The number of I/O operations per second (IOPS) to provision for
the volume.
Constraint: Required when the volume type is
io1.
-
withIops
public Ebs withIops(Integer iops)
The number of I/O operations per second (IOPS) to provision for the volume.
Constraint: Required when the volume type is
io1.- Parameters:
iops- The number of I/O operations per second (IOPS) to provision for the volume.Constraint: Required when the volume type is
io1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEncrypted
public void setEncrypted(Boolean encrypted)
Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
encrypted- Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
-
getEncrypted
public Boolean getEncrypted()
Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
-
withEncrypted
public Ebs withEncrypted(Boolean encrypted)
Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
encrypted- Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEncrypted
public Boolean isEncrypted()
Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-