@Generated(value="software.amazon.awssdk:codegen") public final class EbsBlockDevice extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EbsBlockDevice.Builder> |
serializableBuilderClass() |
String |
snapshotId()
The snapshot ID.
|
EbsBlockDevice.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
volumeSize()
The volume size, in GiB.
|
VolumeType |
volumeType()
The volume type.
|
String |
volumeTypeAsString()
The volume type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String snapshotId()
The snapshot ID.
public final Integer iops()
The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
public final Integer volumeSize()
The volume size, in GiB. For more information, see EbsBlockDevice.
public final VolumeType volumeType()
The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD)
volumes, st1 for Throughput Optimized hard disk drives (HDD), sc1 for Cold HDD,and
standard for Magnetic volumes.
If you specify the io1 volume type, you must also specify a value for the Iops
attribute. The maximum ratio of provisioned IOPS to requested volume size (in GiB) is 50:1. AWS uses the default
volume size (in GiB) specified in the AMI attributes to set IOPS to 50 x (volume size).
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, st1 for Throughput Optimized hard disk drives (HDD), sc1
for Cold HDD,and standard for Magnetic volumes.
If you specify the io1 volume type, you must also specify a value for the Iops
attribute. The maximum ratio of provisioned IOPS to requested volume size (in GiB) is 50:1. AWS uses the
default volume size (in GiB) specified in the AMI attributes to set IOPS to 50 x (volume size).
VolumeTypepublic final String volumeTypeAsString()
The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD)
volumes, st1 for Throughput Optimized hard disk drives (HDD), sc1 for Cold HDD,and
standard for Magnetic volumes.
If you specify the io1 volume type, you must also specify a value for the Iops
attribute. The maximum ratio of provisioned IOPS to requested volume size (in GiB) is 50:1. AWS uses the default
volume size (in GiB) specified in the AMI attributes to set IOPS to 50 x (volume size).
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, st1 for Throughput Optimized hard disk drives (HDD), sc1
for Cold HDD,and standard for Magnetic volumes.
If you specify the io1 volume type, you must also specify a value for the Iops
attribute. The maximum ratio of provisioned IOPS to requested volume size (in GiB) is 50:1. AWS uses the
default volume size (in GiB) specified in the AMI attributes to set IOPS to 50 x (volume size).
VolumeTypepublic final Boolean deleteOnTermination()
Whether the volume is deleted on instance termination.
public EbsBlockDevice.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EbsBlockDevice.Builder,EbsBlockDevice>public static EbsBlockDevice.Builder builder()
public static Class<? extends EbsBlockDevice.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.