Class DetachVolumeResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.ec2.model.Ec2Response
-
- software.amazon.awssdk.services.ec2.model.DetachVolumeResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DetachVolumeResponse.Builder,DetachVolumeResponse>
@Generated("software.amazon.awssdk:codegen") public final class DetachVolumeResponse extends Ec2Response implements ToCopyableBuilder<DetachVolumeResponse.Builder,DetachVolumeResponse>
Describes volume attachment details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDetachVolumeResponse.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 DetachVolumeResponse.Builderbuilder()BooleandeleteOnTermination()Indicates whether the EBS volume is deleted on instance termination.Stringdevice()The device name.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceId()The ID of the instance.StringinstanceOwningService()The service principal of the Amazon Web Services service that owns the underlying resource to which the volume is attached.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DetachVolumeResponse.Builder>serializableBuilderClass()VolumeAttachmentStatestate()The attachment state of the volume.StringstateAsString()The attachment state of the volume.DetachVolumeResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvolumeId()The ID of the volume.-
Methods inherited from class software.amazon.awssdk.services.ec2.model.Ec2Response
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
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.
-
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.
-
instanceOwningService
public final String 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.
-
volumeId
public final String volumeId()
The ID of the volume.
- Returns:
- The ID of the volume.
-
instanceId
public final String 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
public final String 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
public final VolumeAttachmentState 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:
VolumeAttachmentState
-
stateAsString
public final String 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:
VolumeAttachmentState
-
attachTime
public final Instant attachTime()
The time stamp when the attachment initiated.
- Returns:
- The time stamp when the attachment initiated.
-
toBuilder
public DetachVolumeResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DetachVolumeResponse.Builder,DetachVolumeResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static DetachVolumeResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends DetachVolumeResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-