public static interface DetachVolumeRequest.Builder extends Ec2Request.Builder, 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)
Add an optional request override configuration.
|
DetachVolumeRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
DetachVolumeRequest.Builder |
volumeId(String volumeId)
The ID of the volume.
|
build
overrideConfiguration
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.
instanceId
- The ID of the instance.DetachVolumeRequest.Builder volumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.DetachVolumeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.DetachVolumeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.