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 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.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
-
attachTime
public final Instant attachTime()
The time stamp when the attachment initiated.
- Returns:
- The time stamp when the attachment initiated.
-
device
public final String device()
The device name.
- Returns:
- The device name.
-
instanceId
public final String instanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
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
-
volumeId
public final String volumeId()
The ID of the volume.
- Returns:
- The ID of the volume.
-
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.
-
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
-
-