@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetachVolumeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DetachVolumeRequest>
Contains the parameters for DetachVolume.
NOOP
Constructor and Description |
---|
DetachVolumeRequest()
Default constructor for DetachVolumeRequest object.
|
DetachVolumeRequest(String volumeId)
Constructs a new DetachVolumeRequest object.
|
Modifier and Type | Method and Description |
---|---|
DetachVolumeRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDevice()
The device name.
|
Request<DetachVolumeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getForce()
Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an
instance, unmounting the volume, and detaching normally).
|
String |
getInstanceId()
The ID of the instance.
|
String |
getVolumeId()
The ID of the volume.
|
int |
hashCode() |
Boolean |
isForce()
Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an
instance, unmounting the volume, and detaching normally).
|
void |
setDevice(String device)
The device name.
|
void |
setForce(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).
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setVolumeId(String volumeId)
The ID of the volume.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DetachVolumeRequest |
withDevice(String device)
The device name.
|
DetachVolumeRequest |
withForce(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 |
withInstanceId(String instanceId)
The ID of the instance.
|
DetachVolumeRequest |
withVolumeId(String volumeId)
The ID of the volume.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public DetachVolumeRequest()
public DetachVolumeRequest(String volumeId)
volumeId
- The ID of the volume.public void setDevice(String device)
The device name.
device
- The device name.public String getDevice()
The device name.
public DetachVolumeRequest withDevice(String device)
The device name.
device
- The device name.public void setForce(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.public Boolean getForce()
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 DetachVolumeRequest withForce(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.public Boolean isForce()
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 void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public DetachVolumeRequest withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setVolumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public String getVolumeId()
The ID of the volume.
public DetachVolumeRequest withVolumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public Request<DetachVolumeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DetachVolumeRequest>
public String toString()
toString
in class Object
Object.toString()
public DetachVolumeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.