@Generated(value="software.amazon.awssdk:codegen") public class EbsBlockDevice extends Object implements StructuredPojo, ToCopyableBuilder<EbsBlockDevice.Builder,EbsBlockDevice>
Describes an Amazon EBS volume. This data type maps directly to the Amazon EC2 EbsBlockDevice data type.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EbsBlockDevice.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EbsBlockDevice.Builder |
builder() |
Boolean |
deleteOnTermination()
Whether the volume is deleted on instance termination.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
iops()
The number of I/O operations per second (IOPS) that the volume supports.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
static Class<? extends EbsBlockDevice.Builder> |
serializableBuilderClass() |
String |
snapshotId()
The snapshot ID.
|
EbsBlockDevice.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Integer |
volumeSize()
The volume size, in GiB.
|
VolumeType |
volumeType()
The volume type.
|
String |
volumeTypeAsString()
The volume type.
|
copypublic String snapshotId()
The snapshot ID.
public Integer iops()
The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
public Integer volumeSize()
The volume size, in GiB. For more information, see EbsBlockDevice.
public VolumeType volumeType()
The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD)
volumes, and standard for Magnetic volumes.
If the service returns an enum value that is not available in the current SDK version, volumeType will
return VolumeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
volumeTypeAsString().
gp2 for General Purpose (SSD) volumes, io1 for Provisioned
IOPS (SSD) volumes, and standard for Magnetic volumes.VolumeTypepublic String volumeTypeAsString()
The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD)
volumes, and standard for Magnetic volumes.
If the service returns an enum value that is not available in the current SDK version, volumeType will
return VolumeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
volumeTypeAsString().
gp2 for General Purpose (SSD) volumes, io1 for Provisioned
IOPS (SSD) volumes, and standard for Magnetic volumes.VolumeTypepublic Boolean deleteOnTermination()
Whether the volume is deleted on instance termination.
public EbsBlockDevice.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<EbsBlockDevice.Builder,EbsBlockDevice>public static EbsBlockDevice.Builder builder()
public static Class<? extends EbsBlockDevice.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.