Class Ebs
- All Implemented Interfaces:
Serializable,Cloneable
Describes an Amazon EBS volume.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanIndicates whether the volume is deleted on instance termination.Indicates whether the volume should be encrypted.getIops()The number of I/O operations per second (IOPS) to provision for the volume.The ID of the snapshot.The volume size, in GiB.The volume type.inthashCode()Indicates whether the volume is deleted on instance termination.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.voidThe 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.toString()Returns a string representation of this object; useful for testing and debugging.withDeleteOnTermination(Boolean deleteOnTermination) Indicates whether the volume is deleted on instance termination.withEncrypted(Boolean encrypted) Indicates whether the volume should be encrypted.The number of I/O operations per second (IOPS) to provision for the volume.withSnapshotId(String snapshotId) The ID of the snapshot.withVolumeSize(Integer volumeSize) The volume size, in GiB.withVolumeType(String volumeType) The volume type.
-
Constructor Details
-
Ebs
public Ebs()
-
-
Method Details
-
setSnapshotId
The ID of the snapshot.
- Parameters:
snapshotId- The ID of the snapshot.
-
getSnapshotId
The ID of the snapshot.
- Returns:
- The ID of the snapshot.
-
withSnapshotId
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
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
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
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
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
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
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
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
Indicates whether the volume is deleted on instance termination.
Default:
true- Returns:
- Indicates whether the volume is deleted on instance
termination.
Default:
true
-
withDeleteOnTermination
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
Indicates whether the volume is deleted on instance termination.
Default:
true- Returns:
- Indicates whether the volume is deleted on instance
termination.
Default:
true
-
setIops
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
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-