public class DetachVolumeRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DetachVolumeRequest>
DetachVolume operation
.
Detach a previously attached volume from a running instance.
Constructor and Description |
---|
DetachVolumeRequest()
Default constructor for a new DetachVolumeRequest object.
|
DetachVolumeRequest(String volumeId)
Constructs a new DetachVolumeRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDevice()
The device name to which the volume is attached on the specified
instance.
|
Request<DetachVolumeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getForce()
Forces detachment if the previous detachment attempt did not occur
cleanly (logging into an instance, unmounting the volume, and
detaching normally).
|
String |
getInstanceId()
The ID of the instance from which to detach the the specified volume.
|
String |
getVolumeId()
The ID of the volume to detach.
|
int |
hashCode() |
Boolean |
isForce()
Forces detachment if the previous detachment attempt did not occur
cleanly (logging into an instance, unmounting the volume, and
detaching normally).
|
void |
setDevice(String device)
The device name to which the volume is attached on the specified
instance.
|
void |
setForce(Boolean force)
Forces detachment if the previous detachment attempt did not occur
cleanly (logging into an instance, unmounting the volume, and
detaching normally).
|
void |
setInstanceId(String instanceId)
The ID of the instance from which to detach the the specified volume.
|
void |
setVolumeId(String volumeId)
The ID of the volume to detach.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachVolumeRequest |
withDevice(String device)
The device name to which the volume is attached on the specified
instance.
|
DetachVolumeRequest |
withForce(Boolean force)
Forces detachment if the previous detachment attempt did not occur
cleanly (logging into an instance, unmounting the volume, and
detaching normally).
|
DetachVolumeRequest |
withInstanceId(String instanceId)
The ID of the instance from which to detach the the specified volume.
|
DetachVolumeRequest |
withVolumeId(String volumeId)
The ID of the volume to detach.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public DetachVolumeRequest()
public DetachVolumeRequest(String volumeId)
volumeId
- The ID of the volume to detach.public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId
- The ID of the volume to detach.public DetachVolumeRequest withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The ID of the volume to detach.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the instance from which to detach the the specified volume.public DetachVolumeRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance from which to detach the the specified volume.public String getDevice()
public void setDevice(String device)
device
- The device name to which the volume is attached on the specified
instance.public DetachVolumeRequest withDevice(String device)
Returns a reference to this object so that method calls can be chained together.
device
- The device name to which the volume is attached on the specified
instance.public Boolean isForce()
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 will not have an opportunity to flush file system caches nor file system meta data. If you use this option, you must perform file system check and repair procedures.
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 will not have an opportunity to flush file system caches nor file system meta data. If you use this option, you must perform file system check and repair procedures.
public void setForce(Boolean force)
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 will not have an opportunity to flush file system caches nor file system meta data. 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 (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 will not have an opportunity to flush file system caches nor file system meta data. If you use this option, you must perform file system check and repair procedures.
public DetachVolumeRequest withForce(Boolean force)
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 will not have an opportunity to flush file system caches nor file system meta data. If you use this option, you must perform file system check and repair procedures.
Returns a reference to this object so that method calls can be chained together.
force
- Forces detachment if the previous detachment attempt did not occur
cleanly (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 will not have an opportunity to flush file system caches nor file system meta data. If you use this option, you must perform file system check and repair procedures.
public Boolean getForce()
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 will not have an opportunity to flush file system caches nor file system meta data. If you use this option, you must perform file system check and repair procedures.
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 will not have an opportunity to flush file system caches nor file system meta data. If you use this option, you must perform file system check and repair procedures.
public Request<DetachVolumeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DetachVolumeRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.