|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.DetachVolumeRequest
public class DetachVolumeRequest
Container for the parameters to the DetachVolume operation
.
Detach a previously attached volume from a running instance.
AmazonEC2.detachVolume(DetachVolumeRequest)
Constructor Summary | |
---|---|
DetachVolumeRequest()
Default constructor for a new DetachVolumeRequest object. |
|
DetachVolumeRequest(String volumeId)
Constructs a new DetachVolumeRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getDevice()
The device name to which the volume is attached on the specified instance. |
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DetachVolumeRequest()
public DetachVolumeRequest(String volumeId)
volumeId
- The ID of the volume to detach.Method Detail |
---|
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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |