public class DetachVolumeRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<DetachVolumeRequest>
Contains the parameters for DetachVolume.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
device
The device name.
|
private java.lang.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).
|
private java.lang.String |
instanceId
The ID of the instance.
|
private java.lang.String |
volumeId
The ID of the volume.
|
NOOP
Constructor and Description |
---|
DetachVolumeRequest()
Default constructor for DetachVolumeRequest object.
|
DetachVolumeRequest(java.lang.String volumeId)
Constructs a new DetachVolumeRequest object.
|
Modifier and Type | Method and Description |
---|---|
DetachVolumeRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDevice()
The device name.
|
Request<DetachVolumeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.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).
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.String |
getVolumeId()
The ID of the volume.
|
int |
hashCode() |
java.lang.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(java.lang.String device)
The device name.
|
void |
setForce(java.lang.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(java.lang.String instanceId)
The ID of the instance.
|
void |
setVolumeId(java.lang.String volumeId)
The ID of the volume.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachVolumeRequest |
withDevice(java.lang.String device)
The device name.
|
DetachVolumeRequest |
withForce(java.lang.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(java.lang.String instanceId)
The ID of the instance.
|
DetachVolumeRequest |
withVolumeId(java.lang.String volumeId)
The ID of the volume.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String volumeId
The ID of the volume.
private java.lang.String instanceId
The ID of the instance.
private java.lang.String device
The device name.
private java.lang.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 DetachVolumeRequest()
public DetachVolumeRequest(java.lang.String volumeId)
volumeId
- The ID of the volume.public void setVolumeId(java.lang.String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public java.lang.String getVolumeId()
The ID of the volume.
public DetachVolumeRequest withVolumeId(java.lang.String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public DetachVolumeRequest withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setDevice(java.lang.String device)
The device name.
device
- The device name.public java.lang.String getDevice()
The device name.
public DetachVolumeRequest withDevice(java.lang.String device)
The device name.
device
- The device name.public void setForce(java.lang.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 java.lang.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(java.lang.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 java.lang.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 Request<DetachVolumeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DetachVolumeRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DetachVolumeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()