@Generated(value="software.amazon.awssdk:codegen") public final class DetachVolumeRequest extends Ec2Request implements ToCopyableBuilder<DetachVolumeRequest.Builder,DetachVolumeRequest>
Contains the parameters for DetachVolume.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DetachVolumeRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DetachVolumeRequest.Builder |
builder() |
String |
device()
The device name.
|
boolean |
equals(Object obj) |
Boolean |
force()
Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an
instance, unmounting the volume, and detaching normally).
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceId()
The ID of the instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DetachVolumeRequest.Builder> |
serializableBuilderClass() |
DetachVolumeRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
volumeId()
The ID of the volume.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String device()
The device name.
public Boolean force()
Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance won't have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures.
public String instanceId()
The ID of the instance.
public String volumeId()
The ID of the volume.
public DetachVolumeRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DetachVolumeRequest.Builder,DetachVolumeRequest>toBuilder in class Ec2Requestpublic static DetachVolumeRequest.Builder builder()
public static Class<? extends DetachVolumeRequest.Builder> serializableBuilderClass()
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2019. All rights reserved.