CopyableBuilder<DetachVolumeRequest.Builder,DetachVolumeRequest>
, SdkBuilder<DetachVolumeRequest.Builder,DetachVolumeRequest>
public static interface DetachVolumeRequest.Builder extends CopyableBuilder<DetachVolumeRequest.Builder,DetachVolumeRequest>
Modifier and Type | Method | Description |
---|---|---|
DetachVolumeRequest.Builder |
device(String device) |
The device name.
|
DetachVolumeRequest.Builder |
force(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).
|
DetachVolumeRequest.Builder |
instanceId(String instanceId) |
The ID of the instance.
|
DetachVolumeRequest.Builder |
volumeId(String volumeId) |
The ID of the volume.
|
copy
apply, build
DetachVolumeRequest.Builder device(String device)
The device name.
device
- The device name.DetachVolumeRequest.Builder force(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.
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.DetachVolumeRequest.Builder instanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.DetachVolumeRequest.Builder volumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.