com.amazonaws.services.ec2.model

## クラス Volume

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

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

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

  Represents an Amazon Elastic Block Storage (EBS) volume.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<VolumeAttachment>` | `getAttachments()` Information on what this volume is attached to.
    `java.lang.String` | `getAvailabilityZone()` Availability zone in which this volume was created.
    `java.util.Date` | `getCreateTime()` Timestamp when volume creation was initiated.
    `java.lang.Integer` | `getIops()` Returns the value of the Iops property for this object.
    `java.lang.Integer` | `getSize()` The size of this volume, in gigabytes.
    `java.lang.String` | `getSnapshotId()` Optional snapshot from which this volume was created.
    `java.lang.String` | `getState()` State of this volume (e.g., creating, available).
    `java.util.List<Tag>` | `getTags()` A list of tags for the Volume.
    `java.lang.String` | `getVolumeId()` The unique ID of this volume.
    `java.lang.String` | `getVolumeType()` Returns the value of the VolumeType property for this object.
    `int` | `hashCode()`
    `void` | `setAttachments(java.util.Collection<VolumeAttachment> attachments)` Information on what this volume is attached to.
    `void` | `setAvailabilityZone(java.lang.String availabilityZone)` Availability zone in which this volume was created.
    `void` | `setCreateTime(java.util.Date createTime)` Timestamp when volume creation was initiated.
    `void` | `setIops(java.lang.Integer iops)` Sets the value of the Iops property for this object.
    `void` | `setSize(java.lang.Integer size)` The size of this volume, in gigabytes.
    `void` | `setSnapshotId(java.lang.String snapshotId)` Optional snapshot from which this volume was created.
    `void` | `setState(java.lang.String state)` State of this volume (e.g., creating, available).
    `void` | `setState(VolumeState state)` State of this volume (e.g., creating, available).
    `void` | `setTags(java.util.Collection<Tag> tags)` A list of tags for the Volume.
    `void` | `setVolumeId(java.lang.String volumeId)` The unique ID of this volume.
    `void` | `setVolumeType(java.lang.String volumeType)` Sets the value of the VolumeType property for this object.
    `void` | `setVolumeType(VolumeType volumeType)` Sets the value of the VolumeType property for this object.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Volume` | `withAttachments(java.util.Collection<VolumeAttachment> attachments)` Information on what this volume is attached to.
    `Volume` | `withAttachments(VolumeAttachment... attachments)` Information on what this volume is attached to.
    `Volume` | `withAvailabilityZone(java.lang.String availabilityZone)` Availability zone in which this volume was created.
    `Volume` | `withCreateTime(java.util.Date createTime)` Timestamp when volume creation was initiated.
    `Volume` | `withIops(java.lang.Integer iops)` Sets the value of the Iops property for this object.
    `Volume` | `withSize(java.lang.Integer size)` The size of this volume, in gigabytes.
    `Volume` | `withSnapshotId(java.lang.String snapshotId)` Optional snapshot from which this volume was created.
    `Volume` | `withState(java.lang.String state)` State of this volume (e.g., creating, available).
    `Volume` | `withState(VolumeState state)` State of this volume (e.g., creating, available).
    `Volume` | `withTags(java.util.Collection<Tag> tags)` A list of tags for the Volume.
    `Volume` | `withTags(Tag... tags)` A list of tags for the Volume.
    `Volume` | `withVolumeId(java.lang.String volumeId)` The unique ID of this volume.
    `Volume` | `withVolumeType(java.lang.String volumeType)` Sets the value of the VolumeType property for this object.
    `Volume` | `withVolumeType(VolumeType volumeType)` Sets the value of the VolumeType property for this object.

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

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

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

    - #### Volume

          public Volume()

  - ### メソッドの詳細

    - #### getVolumeId

          public java.lang.String getVolumeId()

      The unique ID of this volume.
      戻り値:
        The unique ID of this volume.

    - #### setVolumeId

          public void setVolumeId(java.lang.String volumeId)

      The unique ID of this volume.
      パラメータ:
        `volumeId` - The unique ID of this volume.

    - #### withVolumeId

          public Volume withVolumeId(java.lang.String volumeId)

      The unique ID of this volume.

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

      パラメータ:
        `volumeId` - The unique ID of this volume.

    - #### getSize

          public java.lang.Integer getSize()

      The size of this volume, in gigabytes.
      戻り値:
        The size of this volume, in gigabytes.

    - #### setSize

          public void setSize(java.lang.Integer size)

      The size of this volume, in gigabytes.
      パラメータ:
        `size` - The size of this volume, in gigabytes.

    - #### withSize

          public Volume withSize(java.lang.Integer size)

      The size of this volume, in gigabytes.

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

      パラメータ:
        `size` - The size of this volume, in gigabytes.

    - #### getSnapshotId

          public java.lang.String getSnapshotId()

      Optional snapshot from which this volume was created.
      戻り値:
        Optional snapshot from which this volume was created.

    - #### setSnapshotId

          public void setSnapshotId(java.lang.String snapshotId)

      Optional snapshot from which this volume was created.
      パラメータ:
        `snapshotId` - Optional snapshot from which this volume was created.

    - #### withSnapshotId

          public Volume withSnapshotId(java.lang.String snapshotId)

      Optional snapshot from which this volume was created.

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

      パラメータ:
        `snapshotId` - Optional snapshot from which this volume was created.

    - #### getAvailabilityZone

          public java.lang.String getAvailabilityZone()

      Availability zone in which this volume was created.
      戻り値:
        Availability zone in which this volume was created.

    - #### setAvailabilityZone

          public void setAvailabilityZone(java.lang.String availabilityZone)

      Availability zone in which this volume was created.
      パラメータ:
        `availabilityZone` - Availability zone in which this volume was created.

    - #### withAvailabilityZone

          public Volume withAvailabilityZone(java.lang.String availabilityZone)

      Availability zone in which this volume was created.

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

      パラメータ:
        `availabilityZone` - Availability zone in which this volume was created.

    - #### getState

          public java.lang.String getState()

      State of this volume (e.g., creating, available).

      Constraints:
      Allowed Values: creating, available, in-use, deleting, error

      戻り値:
        State of this volume (e.g., creating, available).
      関連項目:
        `VolumeState`

    - #### setState

          public void setState(java.lang.String state)

      State of this volume (e.g., creating, available).

      Constraints:
      Allowed Values: creating, available, in-use, deleting, error

      パラメータ:
        `state` - State of this volume (e.g., creating, available).
      関連項目:
        `VolumeState`

    - #### withState

          public Volume withState(java.lang.String state)

      State of this volume (e.g., creating, available).

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

      Constraints:
      Allowed Values: creating, available, in-use, deleting, error

      パラメータ:
        `state` - State of this volume (e.g., creating, available).
      関連項目:
        `VolumeState`

    - #### setState

          public void setState(VolumeState state)

      State of this volume (e.g., creating, available).

      Constraints:
      Allowed Values: creating, available, in-use, deleting, error

      パラメータ:
        `state` - State of this volume (e.g., creating, available).
      関連項目:
        `VolumeState`

    - #### withState

          public Volume withState(VolumeState state)

      State of this volume (e.g., creating, available).

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

      Constraints:
      Allowed Values: creating, available, in-use, deleting, error

      パラメータ:
        `state` - State of this volume (e.g., creating, available).
      関連項目:
        `VolumeState`

    - #### getCreateTime

          public java.util.Date getCreateTime()

      Timestamp when volume creation was initiated.
      戻り値:
        Timestamp when volume creation was initiated.

    - #### setCreateTime

          public void setCreateTime(java.util.Date createTime)

      Timestamp when volume creation was initiated.
      パラメータ:
        `createTime` - Timestamp when volume creation was initiated.

    - #### withCreateTime

          public Volume withCreateTime(java.util.Date createTime)

      Timestamp when volume creation was initiated.

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

      パラメータ:
        `createTime` - Timestamp when volume creation was initiated.

    - #### getAttachments

          public java.util.List<VolumeAttachment> getAttachments()

      Information on what this volume is attached to.
      戻り値:
        Information on what this volume is attached to.

    - #### setAttachments

          public void setAttachments(java.util.Collection<VolumeAttachment> attachments)

      Information on what this volume is attached to.
      パラメータ:
        `attachments` - Information on what this volume is attached to.

    - #### withAttachments

          public Volume withAttachments(VolumeAttachment... attachments)

      Information on what this volume is attached to.

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

      パラメータ:
        `attachments` - Information on what this volume is attached to.

    - #### withAttachments

          public Volume withAttachments(java.util.Collection<VolumeAttachment> attachments)

      Information on what this volume is attached to.

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

      パラメータ:
        `attachments` - Information on what this volume is attached to.

    - #### getTags

          public java.util.List<Tag> getTags()

      A list of tags for the Volume.
      戻り値:
        A list of tags for the Volume.

    - #### setTags

          public void setTags(java.util.Collection<Tag> tags)

      A list of tags for the Volume.
      パラメータ:
        `tags` - A list of tags for the Volume.

    - #### withTags

          public Volume withTags(Tag... tags)

      A list of tags for the Volume.

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

      パラメータ:
        `tags` - A list of tags for the Volume.

    - #### withTags

          public Volume withTags(java.util.Collection<Tag> tags)

      A list of tags for the Volume.

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

      パラメータ:
        `tags` - A list of tags for the Volume.

    - #### getVolumeType

          public java.lang.String getVolumeType()

      Returns the value of the VolumeType property for this object.

      Constraints:
      Allowed Values: standard, io1

      戻り値:
        The value of the VolumeType property for this object.
      関連項目:
        `VolumeType`

    - #### setVolumeType

          public void setVolumeType(java.lang.String volumeType)

      Sets the value of the VolumeType property for this object.

      Constraints:
      Allowed Values: standard, io1

      パラメータ:
        `volumeType` - The new value for the VolumeType property for this object.
      関連項目:
        `VolumeType`

    - #### withVolumeType

          public Volume withVolumeType(java.lang.String volumeType)

      Sets the value of the VolumeType property for this object.

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

      Constraints:
      Allowed Values: standard, io1

      パラメータ:
        `volumeType` - The new value for the VolumeType property for this object.
      関連項目:
        `VolumeType`

    - #### setVolumeType

          public void setVolumeType(VolumeType volumeType)

      Sets the value of the VolumeType property for this object.

      Constraints:
      Allowed Values: standard, io1

      パラメータ:
        `volumeType` - The new value for the VolumeType property for this object.
      関連項目:
        `VolumeType`

    - #### withVolumeType

          public Volume withVolumeType(VolumeType volumeType)

      Sets the value of the VolumeType property for this object.

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

      Constraints:
      Allowed Values: standard, io1

      パラメータ:
        `volumeType` - The new value for the VolumeType property for this object.
      関連項目:
        `VolumeType`

    - #### getIops

          public java.lang.Integer getIops()

      Returns the value of the Iops property for this object.
      戻り値:
        The value of the Iops property for this object.

    - #### setIops

          public void setIops(java.lang.Integer iops)

      Sets the value of the Iops property for this object.
      パラメータ:
        `iops` - The new value for the Iops property for this object.

    - #### withIops

          public Volume withIops(java.lang.Integer iops)

      Sets the value of the Iops property for this object.

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

      パラメータ:
        `iops` - The new value for the Iops property for this object.

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