Class EbsBlockDevice
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an Amazon EBS volume. This data type maps directly to the Amazon EC2 EbsBlockDevice data type.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Whether the volume is deleted on instance termination.getIops()
The number of I/O operations per second (IOPS) that the volume supports.The snapshot ID.The volume size, in GiB.The volume type.int
hashCode()
Whether the volume is deleted on instance termination.void
setDeleteOnTermination
(Boolean deleteOnTermination) Whether the volume is deleted on instance termination.void
The number of I/O operations per second (IOPS) that the volume supports.void
setSnapshotId
(String snapshotId) The snapshot ID.void
setVolumeSize
(Integer volumeSize) The volume size, in GiB.void
setVolumeType
(VolumeType volumeType) The volume type.void
setVolumeType
(String volumeType) The volume type.toString()
Returns a string representation of this object; useful for testing and debugging.withDeleteOnTermination
(Boolean deleteOnTermination) Whether the volume is deleted on instance termination.The number of I/O operations per second (IOPS) that the volume supports.withSnapshotId
(String snapshotId) The snapshot ID.withVolumeSize
(Integer volumeSize) The volume size, in GiB.withVolumeType
(VolumeType volumeType) The volume type.withVolumeType
(String volumeType) The volume type.
-
Constructor Details
-
EbsBlockDevice
public EbsBlockDevice()
-
-
Method Details
-
setSnapshotId
The snapshot ID.
- Parameters:
snapshotId
- The snapshot ID.
-
getSnapshotId
The snapshot ID.
- Returns:
- The snapshot ID.
-
withSnapshotId
The snapshot ID.
- Parameters:
snapshotId
- The snapshot ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIops
The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
- Parameters:
iops
- The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
-
getIops
The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
- Returns:
- The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
-
withIops
The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
- Parameters:
iops
- The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolumeSize
The volume size, in GiB. For more information, see EbsBlockDevice.
- Parameters:
volumeSize
- The volume size, in GiB. For more information, see EbsBlockDevice.
-
getVolumeSize
The volume size, in GiB. For more information, see EbsBlockDevice.
- Returns:
- The volume size, in GiB. For more information, see EbsBlockDevice.
-
withVolumeSize
The volume size, in GiB. For more information, see EbsBlockDevice.
- Parameters:
volumeSize
- The volume size, in GiB. For more information, see EbsBlockDevice.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolumeType
The volume type.
gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- Parameters:
volumeType
- The volume type.gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- See Also:
-
getVolumeType
The volume type.
gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- Returns:
- The volume type.
gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes. - See Also:
-
withVolumeType
The volume type.
gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- Parameters:
volumeType
- The volume type.gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setVolumeType
The volume type.
gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- Parameters:
volumeType
- The volume type.gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- See Also:
-
withVolumeType
The volume type.
gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- Parameters:
volumeType
- The volume type.gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setDeleteOnTermination
Whether the volume is deleted on instance termination.
- Parameters:
deleteOnTermination
- Whether the volume is deleted on instance termination.
-
getDeleteOnTermination
Whether the volume is deleted on instance termination.
- Returns:
- Whether the volume is deleted on instance termination.
-
withDeleteOnTermination
Whether the volume is deleted on instance termination.
- Parameters:
deleteOnTermination
- Whether the volume is deleted on instance termination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDeleteOnTermination
Whether the volume is deleted on instance termination.
- Returns:
- Whether the volume is deleted on instance termination.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-