public static interface DetachVolumeRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<DetachVolumeRequest.Builder,DetachVolumeRequest>
Modifier and Type | Method and 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 |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
DetachVolumeRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
DetachVolumeRequest.Builder |
volumeId(String volumeId)
The ID of the volume.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, 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. If you are detaching a Multi-Attach enabled volume, you must specify an instance ID.
instanceId
- The ID of the instance. If you are detaching a Multi-Attach enabled volume, you must specify an
instance ID.DetachVolumeRequest.Builder volumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.DetachVolumeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
DetachVolumeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2020. All rights reserved.