public class EbsBlockDevice
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an Amazon EBS volume. This data type maps directly to the Amazon EC2 EbsBlockDevice data type.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
deleteOnTermination
Whether the volume is deleted on instance termination.
|
private java.lang.Integer |
iops
The number of I/O operations per second (IOPS) that the volume supports.
|
private java.lang.String |
snapshotId
The snapshot ID.
|
private java.lang.Integer |
volumeSize
The volume size, in GiB.
|
private java.lang.String |
volumeType
The volume type.
|
Constructor and Description |
---|
EbsBlockDevice() |
Modifier and Type | Method and Description |
---|---|
EbsBlockDevice |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getDeleteOnTermination()
Whether the volume is deleted on instance termination.
|
java.lang.Integer |
getIops()
The number of I/O operations per second (IOPS) that the volume supports.
|
java.lang.String |
getSnapshotId()
The snapshot ID.
|
java.lang.Integer |
getVolumeSize()
The volume size, in GiB.
|
java.lang.String |
getVolumeType()
The volume type.
|
int |
hashCode() |
java.lang.Boolean |
isDeleteOnTermination()
Whether the volume is deleted on instance termination.
|
void |
setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Whether the volume is deleted on instance termination.
|
void |
setIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
|
void |
setSnapshotId(java.lang.String snapshotId)
The snapshot ID.
|
void |
setVolumeSize(java.lang.Integer volumeSize)
The volume size, in GiB.
|
void |
setVolumeType(java.lang.String volumeType)
The volume type.
|
void |
setVolumeType(VolumeType volumeType)
The volume type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EbsBlockDevice |
withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Whether the volume is deleted on instance termination.
|
EbsBlockDevice |
withIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
|
EbsBlockDevice |
withSnapshotId(java.lang.String snapshotId)
The snapshot ID.
|
EbsBlockDevice |
withVolumeSize(java.lang.Integer volumeSize)
The volume size, in GiB.
|
EbsBlockDevice |
withVolumeType(java.lang.String volumeType)
The volume type.
|
EbsBlockDevice |
withVolumeType(VolumeType volumeType)
The volume type.
|
private java.lang.String snapshotId
The snapshot ID.
private java.lang.Integer iops
The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
private java.lang.Integer volumeSize
The volume size, in GiB. For more information, see EbsBlockDevice.
private java.lang.String volumeType
The volume type. gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.
private java.lang.Boolean deleteOnTermination
Whether the volume is deleted on instance termination.
public void setSnapshotId(java.lang.String snapshotId)
The snapshot ID.
snapshotId
- The snapshot ID.public java.lang.String getSnapshotId()
The snapshot ID.
public EbsBlockDevice withSnapshotId(java.lang.String snapshotId)
The snapshot ID.
snapshotId
- The snapshot ID.public void setIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
iops
- The number of I/O operations per second (IOPS) that the volume
supports. For more information, see EbsBlockDevice.public java.lang.Integer getIops()
The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
public EbsBlockDevice withIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
iops
- The number of I/O operations per second (IOPS) that the volume
supports. For more information, see EbsBlockDevice.public void setVolumeSize(java.lang.Integer volumeSize)
The volume size, in GiB. For more information, see EbsBlockDevice.
volumeSize
- The volume size, in GiB. For more information, see EbsBlockDevice.public java.lang.Integer getVolumeSize()
The volume size, in GiB. For more information, see EbsBlockDevice.
public EbsBlockDevice withVolumeSize(java.lang.Integer volumeSize)
The volume size, in GiB. For more information, see EbsBlockDevice.
volumeSize
- The volume size, in GiB. For more information, see EbsBlockDevice.public void setVolumeType(java.lang.String volumeType)
The volume type. gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.
volumeType
- The volume type. gp2
for General Purpose (SSD)
volumes, io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.VolumeType
public java.lang.String getVolumeType()
The volume type. gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.
gp2
for General Purpose (SSD)
volumes, io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.VolumeType
public EbsBlockDevice withVolumeType(java.lang.String volumeType)
The volume type. gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.
volumeType
- The volume type. gp2
for General Purpose (SSD)
volumes, io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.VolumeType
public void setVolumeType(VolumeType volumeType)
The volume type. gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.
volumeType
- The volume type. gp2
for General Purpose (SSD)
volumes, io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.VolumeType
public EbsBlockDevice withVolumeType(VolumeType volumeType)
The volume type. gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.
volumeType
- The volume type. gp2
for General Purpose (SSD)
volumes, io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.VolumeType
public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Whether the volume is deleted on instance termination.
deleteOnTermination
- Whether the volume is deleted on instance termination.public java.lang.Boolean getDeleteOnTermination()
Whether the volume is deleted on instance termination.
public EbsBlockDevice withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Whether the volume is deleted on instance termination.
deleteOnTermination
- Whether the volume is deleted on instance termination.public java.lang.Boolean isDeleteOnTermination()
Whether the volume is deleted on instance termination.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public EbsBlockDevice clone()
clone
in class java.lang.Object