public class DetachVolumeRequest extends AmazonWebServiceRequest implements java.io.Serializable
DetachVolume operation.
Detach a previously attached volume from a running instance.
| コンストラクタと説明 |
|---|
DetachVolumeRequest()
Default constructor for a new DetachVolumeRequest object.
|
DetachVolumeRequest(java.lang.String volumeId)
Constructs a new DetachVolumeRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDevice()
The device name to which the volume is attached on the specified
instance.
|
java.lang.Boolean |
getForce()
Forces detachment if the previous detachment attempt did not occur
cleanly (logging into an instance, unmounting the volume, and
detaching normally).
|
java.lang.String |
getInstanceId()
The ID of the instance from which to detach the the specified volume.
|
java.lang.String |
getVolumeId()
The ID of the volume to detach.
|
int |
hashCode() |
java.lang.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(java.lang.String device)
The device name to which the volume is attached on the specified
instance.
|
void |
setForce(java.lang.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(java.lang.String instanceId)
The ID of the instance from which to detach the the specified volume.
|
void |
setVolumeId(java.lang.String volumeId)
The ID of the volume to detach.
|
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 to which the volume is attached on the specified
instance.
|
DetachVolumeRequest |
withForce(java.lang.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(java.lang.String instanceId)
The ID of the instance from which to detach the the specified volume.
|
DetachVolumeRequest |
withVolumeId(java.lang.String volumeId)
The ID of the volume to detach.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic DetachVolumeRequest()
public DetachVolumeRequest(java.lang.String volumeId)
volumeId - The ID of the volume to detach.public java.lang.String getVolumeId()
public void setVolumeId(java.lang.String volumeId)
volumeId - The ID of the volume to detach.public DetachVolumeRequest withVolumeId(java.lang.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 java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The ID of the instance from which to detach the the specified volume.public DetachVolumeRequest withInstanceId(java.lang.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 java.lang.String getDevice()
public void setDevice(java.lang.String device)
device - The device name to which the volume is attached on the specified
instance.public DetachVolumeRequest withDevice(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object