@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EbsBlockDevice extends Object implements Serializable, Cloneable, StructuredPojo
Describes an Amazon EBS volume. This data type maps directly to the Amazon EC2 EbsBlockDevice data type.
Constructor and Description |
---|
EbsBlockDevice() |
Modifier and Type | Method and Description |
---|---|
EbsBlockDevice |
clone() |
boolean |
equals(Object obj) |
Boolean |
getDeleteOnTermination()
Whether the volume is deleted on instance termination.
|
Integer |
getIops()
The number of I/O operations per second (IOPS) that the volume supports.
|
String |
getSnapshotId()
The snapshot ID.
|
Integer |
getVolumeSize()
The volume size, in GiB.
|
String |
getVolumeType()
The volume type.
|
int |
hashCode() |
Boolean |
isDeleteOnTermination()
Whether the volume is deleted on instance termination.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Whether the volume is deleted on instance termination.
|
void |
setIops(Integer iops)
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(String volumeType)
The volume type.
|
void |
setVolumeType(VolumeType volumeType)
The volume type.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
EbsBlockDevice |
withDeleteOnTermination(Boolean deleteOnTermination)
Whether the volume is deleted on instance termination.
|
EbsBlockDevice |
withIops(Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
|
EbsBlockDevice |
withSnapshotId(String snapshotId)
The snapshot ID.
|
EbsBlockDevice |
withVolumeSize(Integer volumeSize)
The volume size, in GiB.
|
EbsBlockDevice |
withVolumeType(String volumeType)
The volume type.
|
EbsBlockDevice |
withVolumeType(VolumeType volumeType)
The volume type.
|
public void setSnapshotId(String snapshotId)
The snapshot ID.
snapshotId
- The snapshot ID.public String getSnapshotId()
The snapshot ID.
public EbsBlockDevice withSnapshotId(String snapshotId)
The snapshot ID.
snapshotId
- The snapshot ID.public void setIops(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 Integer getIops()
The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
public EbsBlockDevice withIops(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(Integer volumeSize)
The volume size, in GiB. For more information, see EbsBlockDevice.
volumeSize
- The volume size, in GiB. For more information, see EbsBlockDevice.public Integer getVolumeSize()
The volume size, in GiB. For more information, see EbsBlockDevice.
public EbsBlockDevice withVolumeSize(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(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 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(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(Boolean deleteOnTermination)
Whether the volume is deleted on instance termination.
deleteOnTermination
- Whether the volume is deleted on instance termination.public Boolean getDeleteOnTermination()
Whether the volume is deleted on instance termination.
public EbsBlockDevice withDeleteOnTermination(Boolean deleteOnTermination)
Whether the volume is deleted on instance termination.
deleteOnTermination
- Whether the volume is deleted on instance termination.public Boolean isDeleteOnTermination()
Whether the volume is deleted on instance termination.
public String toString()
toString
in class Object
Object.toString()
public EbsBlockDevice clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.