@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) |
<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()
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.
|
copy
public 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, 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).
VolumeType
public 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).
VolumeType
public Boolean deleteOnTermination()
Whether the volume is deleted on instance termination.
public EbsBlockDevice.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<EbsBlockDevice.Builder,EbsBlockDevice>
public static EbsBlockDevice.Builder builder()
public static Class<? extends EbsBlockDevice.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.