Class EbsInstanceBlockDevice
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.EbsInstanceBlockDevice
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EbsInstanceBlockDevice.Builder,EbsInstanceBlockDevice>
@Generated("software.amazon.awssdk:codegen") public final class EbsInstanceBlockDevice extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EbsInstanceBlockDevice.Builder,EbsInstanceBlockDevice>
Describes a parameter used to set up an EBS volume in a block device mapping.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEbsInstanceBlockDevice.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringassociatedResource()The ARN of the Amazon Web Services-managed resource to which the volume is attached.InstantattachTime()The time stamp when the attachment initiated.static EbsInstanceBlockDevice.Builderbuilder()BooleandeleteOnTermination()Indicates whether the volume is deleted on instance termination.IntegerebsCardIndex()The index of the EBS card.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()OperatorResponseoperator()The service provider that manages the EBS volume.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends EbsInstanceBlockDevice.Builder>serializableBuilderClass()AttachmentStatusstatus()The attachment state.StringstatusAsString()The attachment state.EbsInstanceBlockDevice.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvolumeId()The ID of the EBS volume.StringvolumeOwnerId()The ID of the Amazon Web Services account that owns the volume.-
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
-
attachTime
public final Instant attachTime()
The time stamp when the attachment initiated.
- Returns:
- The time stamp when the attachment initiated.
-
deleteOnTermination
public final Boolean deleteOnTermination()
Indicates whether the volume is deleted on instance termination.
- Returns:
- Indicates whether the volume is deleted on instance termination.
-
status
public final AttachmentStatus status()
The attachment state.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnAttachmentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The attachment state.
- See Also:
AttachmentStatus
-
statusAsString
public final String statusAsString()
The attachment state.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnAttachmentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The attachment state.
- See Also:
AttachmentStatus
-
volumeId
public final String volumeId()
The ID of the EBS volume.
- Returns:
- The ID of the EBS volume.
-
associatedResource
public final String associatedResource()
The ARN of the Amazon Web Services-managed resource to which the volume is attached.
- Returns:
- The ARN of the Amazon Web Services-managed resource to which the volume is attached.
-
volumeOwnerId
public final String volumeOwnerId()
The ID of the Amazon Web Services account that owns the volume.
This parameter is returned only for volumes that are attached to Amazon Web Services-managed resources.
- Returns:
- The ID of the Amazon Web Services account that owns the volume.
This parameter is returned only for volumes that are attached to Amazon Web Services-managed resources.
-
operator
public final OperatorResponse operator()
The service provider that manages the EBS volume.
- Returns:
- The service provider that manages the EBS volume.
-
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 EbsInstanceBlockDevice.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EbsInstanceBlockDevice.Builder,EbsInstanceBlockDevice>
-
builder
public static EbsInstanceBlockDevice.Builder builder()
-
serializableBuilderClass
public static Class<? extends EbsInstanceBlockDevice.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
-
-