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 interface
DetachVolumeResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
associatedResource()
The ARN of the Amazon ECS or Fargate task to which the volume is attached.Instant
attachTime()
The time stamp when the attachment initiated.static DetachVolumeResponse.Builder
builder()
Boolean
deleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.String
device()
The device name.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
instanceId()
The ID of the instance.String
instanceOwningService()
The service principal of Amazon Web Services service that owns the underlying instance to which the volume is attached.List<SdkField<?>>
sdkFields()
static Class<? extends DetachVolumeResponse.Builder>
serializableBuilderClass()
VolumeAttachmentState
state()
The attachment state of the volume.String
stateAsString()
The attachment state of the volume.DetachVolumeResponse.Builder
toBuilder()
String
toString()
Returns a string representation of this object.String
volumeId()
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 ECS or Fargate task to which the volume is attached.
- Returns:
- The ARN of the Amazon ECS or Fargate task to which the volume is attached.
-
instanceOwningService
public final String instanceOwningService()
The service principal of Amazon Web Services service that owns the underlying instance to which the volume is attached.
This parameter is returned only for volumes that are attached to Fargate tasks.
- Returns:
- The service principal of Amazon Web Services service that owns the underlying instance to which the
volume is attached.
This parameter is returned only for volumes that are attached to Fargate tasks.
-
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 a Fargate task, this parameter returns
null
.- Returns:
- The ID of the instance.
If the volume is attached to a Fargate task, this parameter returns
null
.
-
device
public final String device()
The device name.
If the volume is attached to a Fargate task, this parameter returns
null
.- Returns:
- The device name.
If the volume is attached to a Fargate task, 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,
state
will 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,
state
will 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:
toBuilder
in interfaceToCopyableBuilder<DetachVolumeResponse.Builder,DetachVolumeResponse>
- Specified by:
toBuilder
in classAwsResponse
-
builder
public static DetachVolumeResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends DetachVolumeResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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:
getValueForField
in classSdkResponse
-
-