Class EbsBlockDevice
- java.lang.Object
-
- software.amazon.awssdk.services.opsworks.model.EbsBlockDevice
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EbsBlockDevice.Builder,EbsBlockDevice>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEbsBlockDevice.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EbsBlockDevice.Builderbuilder()BooleandeleteOnTermination()Whether the volume is deleted on instance termination.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Integeriops()The number of I/O operations per second (IOPS) that the volume supports.List<SdkField<?>>sdkFields()static Class<? extends EbsBlockDevice.Builder>serializableBuilderClass()StringsnapshotId()The snapshot ID.EbsBlockDevice.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegervolumeSize()The volume size, in GiB.VolumeTypevolumeType()The volume type.StringvolumeTypeAsString()The volume type.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
snapshotId
public final String snapshotId()
The snapshot ID.
- Returns:
- The snapshot ID.
-
iops
public final Integer iops()
The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
- Returns:
- The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
-
volumeSize
public final Integer volumeSize()
The volume size, in GiB. For more information, see EbsBlockDevice.
- Returns:
- The volume size, in GiB. For more information, see EbsBlockDevice.
-
volumeType
public final VolumeType volumeType()
The volume type.
gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes,st1for Throughput Optimized hard disk drives (HDD),sc1for Cold HDD,andstandardfor Magnetic volumes.If you specify the
io1volume type, you must also specify a value for theIopsattribute. 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,
volumeTypewill returnVolumeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvolumeTypeAsString().- Returns:
- The volume type.
gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes,st1for Throughput Optimized hard disk drives (HDD),sc1for Cold HDD,andstandardfor Magnetic volumes.If you specify the
io1volume type, you must also specify a value for theIopsattribute. 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). - See Also:
VolumeType
-
volumeTypeAsString
public final String volumeTypeAsString()
The volume type.
gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes,st1for Throughput Optimized hard disk drives (HDD),sc1for Cold HDD,andstandardfor Magnetic volumes.If you specify the
io1volume type, you must also specify a value for theIopsattribute. 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,
volumeTypewill returnVolumeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvolumeTypeAsString().- Returns:
- The volume type.
gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes,st1for Throughput Optimized hard disk drives (HDD),sc1for Cold HDD,andstandardfor Magnetic volumes.If you specify the
io1volume type, you must also specify a value for theIopsattribute. 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). - See Also:
VolumeType
-
deleteOnTermination
public final Boolean deleteOnTermination()
Whether the volume is deleted on instance termination.
- Returns:
- Whether the volume is deleted on instance termination.
-
toBuilder
public EbsBlockDevice.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EbsBlockDevice.Builder,EbsBlockDevice>
-
builder
public static EbsBlockDevice.Builder builder()
-
serializableBuilderClass
public static Class<? extends EbsBlockDevice.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-