com.amazonaws.services.ec2.model

## クラス AttachVolumeRequest

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

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

      public class AttachVolumeRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `AttachVolume operation`.

  Attach a previously created volume to a running instance.

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

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

    コンストラクタ
    コンストラクタと説明
    `AttachVolumeRequest()` Default constructor for a new AttachVolumeRequest object.
    `AttachVolumeRequest(java.lang.String volumeId, java.lang.String instanceId, java.lang.String device)` Constructs a new AttachVolumeRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getDevice()` Specifies how the device is exposed to the instance (e.g., `/dev/sdh`).
    `java.lang.String` | `getInstanceId()` The ID of the instance to which the volume attaches.
    `java.lang.String` | `getVolumeId()` The ID of the Amazon EBS volume.
    `int` | `hashCode()`
    `void` | `setDevice(java.lang.String device)` Specifies how the device is exposed to the instance (e.g., `/dev/sdh`).
    `void` | `setInstanceId(java.lang.String instanceId)` The ID of the instance to which the volume attaches.
    `void` | `setVolumeId(java.lang.String volumeId)` The ID of the Amazon EBS volume.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `AttachVolumeRequest` | `withDevice(java.lang.String device)` Specifies how the device is exposed to the instance (e.g., `/dev/sdh`).
    `AttachVolumeRequest` | `withInstanceId(java.lang.String instanceId)` The ID of the instance to which the volume attaches.
    `AttachVolumeRequest` | `withVolumeId(java.lang.String volumeId)` The ID of the Amazon EBS volume.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### AttachVolumeRequest

          public AttachVolumeRequest()

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

    - #### AttachVolumeRequest

          public AttachVolumeRequest(java.lang.String volumeId,
                             java.lang.String instanceId,
                             java.lang.String device)

      Constructs a new AttachVolumeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `volumeId` - The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone and the instance must be running.
        `instanceId` - The ID of the instance to which the volume attaches. The volume and instance must be within the same Availability Zone and the instance must be running.
        `device` - Specifies how the device is exposed to the instance (e.g., `/dev/sdh`).

  - ### メソッドの詳細

    - #### getVolumeId

          public java.lang.String getVolumeId()

      The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone and the instance must be running.
      戻り値:
        The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone and the instance must be running.

    - #### setVolumeId

          public void setVolumeId(java.lang.String volumeId)

      The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone and the instance must be running.
      パラメータ:
        `volumeId` - The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone and the instance must be running.

    - #### withVolumeId

          public AttachVolumeRequest withVolumeId(java.lang.String volumeId)

      The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone and the instance must be running.

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

      パラメータ:
        `volumeId` - The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone and the instance must be running.

    - #### getInstanceId

          public java.lang.String getInstanceId()

      The ID of the instance to which the volume attaches. The volume and instance must be within the same Availability Zone and the instance must be running.
      戻り値:
        The ID of the instance to which the volume attaches. The volume and instance must be within the same Availability Zone and the instance must be running.

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

      The ID of the instance to which the volume attaches. The volume and instance must be within the same Availability Zone and the instance must be running.
      パラメータ:
        `instanceId` - The ID of the instance to which the volume attaches. The volume and instance must be within the same Availability Zone and the instance must be running.

    - #### withInstanceId

          public AttachVolumeRequest withInstanceId(java.lang.String instanceId)

      The ID of the instance to which the volume attaches. The volume and instance must be within the same Availability Zone and the instance must be running.

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

      パラメータ:
        `instanceId` - The ID of the instance to which the volume attaches. The volume and instance must be within the same Availability Zone and the instance must be running.

    - #### getDevice

          public java.lang.String getDevice()

      Specifies how the device is exposed to the instance (e.g., `/dev/sdh`).
      戻り値:
        Specifies how the device is exposed to the instance (e.g., `/dev/sdh`).

    - #### setDevice

          public void setDevice(java.lang.String device)

      Specifies how the device is exposed to the instance (e.g., `/dev/sdh`).
      パラメータ:
        `device` - Specifies how the device is exposed to the instance (e.g., `/dev/sdh`).

    - #### withDevice

          public AttachVolumeRequest withDevice(java.lang.String device)

      Specifies how the device is exposed to the instance (e.g., `/dev/sdh`).

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

      パラメータ:
        `device` - Specifies how the device is exposed to the instance (e.g., `/dev/sdh`).

    - #### 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`