Class Ebs
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an Amazon EBS volume.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Indicates 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.int
hashCode()
Indicates whether the volume is deleted on instance termination.Indicates whether the volume should be encrypted.void
setDeleteOnTermination
(Boolean deleteOnTermination) Indicates whether the volume is deleted on instance termination.void
setEncrypted
(Boolean encrypted) Indicates whether the volume should be encrypted.void
The number of I/O operations per second (IOPS) to provision for the volume.void
setSnapshotId
(String snapshotId) The ID of the snapshot.void
setVolumeSize
(Integer volumeSize) The volume size, in GiB.void
setVolumeType
(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
standard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
volumes, 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. Forstandard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
volumes, 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
standard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
volumes, 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
standard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
volumes, 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
standard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
volumes, 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. Forstandard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
volumes, 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
|gp2
Default:
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
|gp2
Default:
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
|gp2
Default:
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
|gp2
Default:
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
|gp2
Default:
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
|gp2
Default:
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
-