Class VolumeAttachment
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<VolumeAttachment.Builder,VolumeAttachment>
Describes volume attachment details.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe ARN of the Amazon Web Services-managed resource to which the volume is attached.final InstantThe time stamp when the attachment initiated.static VolumeAttachment.Builderbuilder()final BooleanIndicates whether the EBS volume is deleted on instance termination.final Stringdevice()The device name.final IntegerThe index of the EBS card.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe ID of the instance.final StringThe service principal of the Amazon Web Services service that owns the underlying resource to which the volume is attached.static Class<? extends VolumeAttachment.Builder>final VolumeAttachmentStatestate()The attachment state of the volume.final StringThe attachment state of the volume.final StringtoString()Returns a string representation of this object.final StringvolumeId()The ID of the volume.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
deleteOnTermination
Indicates whether the EBS volume is deleted on instance termination.
- Returns:
- Indicates whether the EBS volume is deleted on instance termination.
-
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.
-
instanceOwningService
The service principal of the Amazon Web Services service that owns the underlying resource to which the volume is attached.
This parameter is returned only for volumes that are attached to Amazon Web Services-managed resources.
- Returns:
- The service principal of the Amazon Web Services service that owns the underlying resource to which the
volume is attached.
This parameter is returned only for volumes that are attached to Amazon Web Services-managed resources.
-
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.
-
volumeId
The ID of the volume.
- Returns:
- The ID of the volume.
-
instanceId
The ID of the instance.
If the volume is attached to an Amazon Web Services-managed resource, this parameter returns
null.- Returns:
- The ID of the instance.
If the volume is attached to an Amazon Web Services-managed resource, this parameter returns
null.
-
device
The device name.
If the volume is attached to an Amazon Web Services-managed resource, this parameter returns
null.- Returns:
- The device name.
If the volume is attached to an Amazon Web Services-managed resource, this parameter returns
null.
-
state
The attachment state of the volume.
If the service returns an enum value that is not available in the current SDK version,
statewill returnVolumeAttachmentState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The attachment state of the volume.
- See Also:
-
stateAsString
The attachment state of the volume.
If the service returns an enum value that is not available in the current SDK version,
statewill returnVolumeAttachmentState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The attachment state of the volume.
- See Also:
-
attachTime
The time stamp when the attachment initiated.
- Returns:
- The time stamp when the attachment initiated.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<VolumeAttachment.Builder,VolumeAttachment>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-