com.amazonaws.services.ec2.model

## クラス VolumeAttachment

- java.lang.Object
- - com.amazonaws.services.ec2.model.VolumeAttachment

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

      public class VolumeAttachment
      extends java.lang.Object
      implements java.io.Serializable

  Specifies the details of a how an EC2 EBS volume is attached to an instance.

  関連項目:
    直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `VolumeAttachment()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.Date` | `getAttachTime()` Timestamp when this attachment initiated.
    `java.lang.Boolean` | `getDeleteOnTermination()` ` Whether this volume will be deleted or not when the associated instance is terminated.
    `java.lang.String` | `getDevice()` How the device is exposed to the instance (e.g., `/dev/sdh`).
    `java.lang.String` | `getInstanceId()`
    `java.lang.String` | `getState()` Constraints: Allowed Values: attaching, attached, detaching, detached
    `java.lang.String` | `getVolumeId()`
    `int` | `hashCode()`
    `java.lang.Boolean` | `isDeleteOnTermination()` ` Whether this volume will be deleted or not when the associated instance is terminated.
    `void` | `setAttachTime(java.util.Date attachTime)` Timestamp when this attachment initiated.
    `void` | `setDeleteOnTermination(java.lang.Boolean deleteOnTermination)` ` Whether this volume will be deleted or not when the associated instance is terminated.
    `void` | `setDevice(java.lang.String device)` How the device is exposed to the instance (e.g., `/dev/sdh`).
    `void` | `setInstanceId(java.lang.String instanceId)`
    `void` | `setState(java.lang.String state)` Constraints: Allowed Values: attaching, attached, detaching, detached
    `void` | `setState(VolumeAttachmentState state)` Constraints: Allowed Values: attaching, attached, detaching, detached
    `void` | `setVolumeId(java.lang.String volumeId)`
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `VolumeAttachment` | `withAttachTime(java.util.Date attachTime)` Timestamp when this attachment initiated.
    `VolumeAttachment` | `withDeleteOnTermination(java.lang.Boolean deleteOnTermination)` ` Whether this volume will be deleted or not when the associated instance is terminated.
    `VolumeAttachment` | `withDevice(java.lang.String device)` How the device is exposed to the instance (e.g., `/dev/sdh`).
    `VolumeAttachment` | `withInstanceId(java.lang.String instanceId)` Returns a reference to this object so that method calls can be chained together.
    `VolumeAttachment` | `withState(java.lang.String state)` Returns a reference to this object so that method calls can be chained together.
    `VolumeAttachment` | `withState(VolumeAttachmentState state)` Returns a reference to this object so that method calls can be chained together.
    `VolumeAttachment` | `withVolumeId(java.lang.String volumeId)` Returns a reference to this object so that method calls can be chained together.

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

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

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

    - #### VolumeAttachment

          public VolumeAttachment()

  - ### メソッドの詳細

    - #### getVolumeId

          public java.lang.String getVolumeId()

      戻り値:

    - #### setVolumeId

          public void setVolumeId(java.lang.String volumeId)

      パラメータ:
        `volumeId` -

    - #### withVolumeId

          public VolumeAttachment withVolumeId(java.lang.String volumeId)

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

      パラメータ:
        `volumeId` -

    - #### getInstanceId

          public java.lang.String getInstanceId()

      戻り値:

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

      パラメータ:
        `instanceId` -

    - #### withInstanceId

          public VolumeAttachment withInstanceId(java.lang.String instanceId)

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

      パラメータ:
        `instanceId` -

    - #### getDevice

          public java.lang.String getDevice()

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

    - #### setDevice

          public void setDevice(java.lang.String device)

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

    - #### withDevice

          public VolumeAttachment withDevice(java.lang.String device)

      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` - How the device is exposed to the instance (e.g., `/dev/sdh`).

    - #### getState

          public java.lang.String getState()

      Constraints:
      Allowed Values: attaching, attached, detaching, detached

      戻り値:
      関連項目:
        `VolumeAttachmentState`

    - #### setState

          public void setState(java.lang.String state)

      Constraints:
      Allowed Values: attaching, attached, detaching, detached

      パラメータ:
        `state` -
      関連項目:
        `VolumeAttachmentState`

    - #### withState

          public VolumeAttachment withState(java.lang.String state)

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

      Constraints:
      Allowed Values: attaching, attached, detaching, detached

      パラメータ:
        `state` -
      関連項目:
        `VolumeAttachmentState`

    - #### setState

          public void setState(VolumeAttachmentState state)

      Constraints:
      Allowed Values: attaching, attached, detaching, detached

      パラメータ:
        `state` -
      関連項目:
        `VolumeAttachmentState`

    - #### withState

          public VolumeAttachment withState(VolumeAttachmentState state)

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

      Constraints:
      Allowed Values: attaching, attached, detaching, detached

      パラメータ:
        `state` -
      関連項目:
        `VolumeAttachmentState`

    - #### getAttachTime

          public java.util.Date getAttachTime()

      Timestamp when this attachment initiated.
      戻り値:
        Timestamp when this attachment initiated.

    - #### setAttachTime

          public void setAttachTime(java.util.Date attachTime)

      Timestamp when this attachment initiated.
      パラメータ:
        `attachTime` - Timestamp when this attachment initiated.

    - #### withAttachTime

          public VolumeAttachment withAttachTime(java.util.Date attachTime)

      Timestamp when this attachment initiated.

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

      パラメータ:
        `attachTime` - Timestamp when this attachment initiated.

    - #### isDeleteOnTermination

          public java.lang.Boolean isDeleteOnTermination()

      `

      Whether this volume will be deleted or not when the associated instance is terminated.

      戻り値:
        `

        Whether this volume will be deleted or not when the associated instance is terminated.

    - #### setDeleteOnTermination

          public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)

      `

      Whether this volume will be deleted or not when the associated instance is terminated.

      パラメータ:
        `deleteOnTermination` - `

        Whether this volume will be deleted or not when the associated instance is terminated.

    - #### withDeleteOnTermination

          public VolumeAttachment withDeleteOnTermination(java.lang.Boolean deleteOnTermination)

      `

      Whether this volume will be deleted or not when the associated instance is terminated.

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

      パラメータ:
        `deleteOnTermination` - `

        Whether this volume will be deleted or not when the associated instance is terminated.

    - #### getDeleteOnTermination

          public java.lang.Boolean getDeleteOnTermination()

      `

      Whether this volume will be deleted or not when the associated instance is terminated.

      戻り値:
        `

        Whether this volume will be deleted or not when the associated instance is terminated.

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