Class LaunchTemplateEbsBlockDevice
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.LaunchTemplateEbsBlockDevice
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LaunchTemplateEbsBlockDevice.Builder,LaunchTemplateEbsBlockDevice>
@Generated("software.amazon.awssdk:codegen") public final class LaunchTemplateEbsBlockDevice extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LaunchTemplateEbsBlockDevice.Builder,LaunchTemplateEbsBlockDevice>
Describes a block device for an EBS volume.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLaunchTemplateEbsBlockDevice.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LaunchTemplateEbsBlockDevice.Builderbuilder()BooleandeleteOnTermination()Indicates whether the EBS volume is deleted on instance termination.IntegerebsCardIndex()The index of the EBS card.Booleanencrypted()Indicates whether the EBS volume is encrypted.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.StringkmsKeyId()Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends LaunchTemplateEbsBlockDevice.Builder>serializableBuilderClass()StringsnapshotId()The ID of the snapshot.Integerthroughput()The throughput that the volume supports, in MiB/s.LaunchTemplateEbsBlockDevice.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegervolumeInitializationRate()The Amazon EBS Provisioned Rate for Volume Initialization (volume initialization rate) specified for the volume, in MiB/s.IntegervolumeSize()The size of the volume, 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
-
encrypted
public final Boolean encrypted()
Indicates whether the EBS volume is encrypted.
- Returns:
- Indicates whether the EBS volume is encrypted.
-
deleteOnTermination
public final Boolean deleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
- Returns:
- Indicates whether the EBS volume is deleted on instance termination.
-
iops
public final Integer iops()
The number of I/O operations per second (IOPS) that the volume supports.
- Returns:
- The number of I/O operations per second (IOPS) that the volume supports.
-
kmsKeyId
public final String kmsKeyId()
Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption.
- Returns:
- Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption.
-
snapshotId
public final String snapshotId()
The ID of the snapshot.
- Returns:
- The ID of the snapshot.
-
volumeSize
public final Integer volumeSize()
The size of the volume, in GiB.
- Returns:
- The size of the volume, in GiB.
-
volumeType
public final VolumeType volumeType()
The volume type.
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.
- See Also:
VolumeType
-
volumeTypeAsString
public final String volumeTypeAsString()
The volume type.
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.
- See Also:
VolumeType
-
throughput
public final Integer throughput()
The throughput that the volume supports, in MiB/s.
- Returns:
- The throughput that the volume supports, in MiB/s.
-
volumeInitializationRate
public final Integer volumeInitializationRate()
The Amazon EBS Provisioned Rate for Volume Initialization (volume initialization rate) specified for the volume, in MiB/s. If no volume initialization rate was specified, the value is
null.- Returns:
- The Amazon EBS Provisioned Rate for Volume Initialization (volume initialization rate) specified for the
volume, in MiB/s. If no volume initialization rate was specified, the value is
null.
-
ebsCardIndex
public final Integer ebsCardIndex()
The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0.
- Returns:
- The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0.
-
toBuilder
public LaunchTemplateEbsBlockDevice.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LaunchTemplateEbsBlockDevice.Builder,LaunchTemplateEbsBlockDevice>
-
builder
public static LaunchTemplateEbsBlockDevice.Builder builder()
-
serializableBuilderClass
public static Class<? extends LaunchTemplateEbsBlockDevice.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-