com.amazonaws.services.ec2.model

## クラス DetachVolumeRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.ec2.model.DetachVolumeRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class DetachVolumeRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `DetachVolume operation`.

  Detach a previously attached volume from a running instance.

  関連項目:
    `AmazonEC2.detachVolume(DetachVolumeRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `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.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### DetachVolumeRequest

          public DetachVolumeRequest()

      Default constructor for a new DetachVolumeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### DetachVolumeRequest

          public DetachVolumeRequest(java.lang.String volumeId)

      Constructs a new DetachVolumeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `volumeId` - The ID of the volume to detach.

  - ### メソッドの詳細

    - #### getVolumeId

          public java.lang.String getVolumeId()

      The ID of the volume to detach.
      戻り値:
        The ID of the volume to detach.

    - #### setVolumeId

          public void setVolumeId(java.lang.String volumeId)

      The ID of the volume to detach.
      パラメータ:
        `volumeId` - The ID of the volume to detach.

    - #### withVolumeId

          public DetachVolumeRequest withVolumeId(java.lang.String volumeId)

      The ID of the volume to detach.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `volumeId` - The ID of the volume to detach.

    - #### getInstanceId

          public java.lang.String getInstanceId()

      The ID of the instance from which to detach the the specified volume.
      戻り値:
        The ID of the instance from which to detach the the specified volume.

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

      The ID of the instance from which to detach the the specified volume.
      パラメータ:
        `instanceId` - The ID of the instance from which to detach the the specified volume.

    - #### withInstanceId

          public DetachVolumeRequest withInstanceId(java.lang.String instanceId)

      The ID of the instance from which to detach the the specified volume.

      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.

    - #### getDevice

          public java.lang.String getDevice()

      The device name to which the volume is attached on the specified instance.
      戻り値:
        The device name to which the volume is attached on the specified instance.

    - #### setDevice

          public void setDevice(java.lang.String device)

      The device name to which the volume is attached on the specified instance.
      パラメータ:
        `device` - The device name to which the volume is attached on the specified instance.

    - #### withDevice

          public DetachVolumeRequest withDevice(java.lang.String device)

      The device name to which the volume is attached on the specified instance.

      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.

    - #### isForce

          public 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).

      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.

      戻り値:
        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.

    - #### setForce

          public 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).

      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.

    - #### withForce

          public 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).

      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.

    - #### getForce

          public 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).

      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.

      戻り値:
        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.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`