com.amazonaws.services.ec2.model

## クラス CreateVolumeRequest

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

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

      public class CreateVolumeRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreateVolume operation`.

  Initializes an empty volume of a given size.

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

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

    コンストラクタ
    コンストラクタと説明
    `CreateVolumeRequest()` Default constructor for a new CreateVolumeRequest object.
    `CreateVolumeRequest(java.lang.Integer size, java.lang.String availabilityZone)` Constructs a new CreateVolumeRequest object.
    `CreateVolumeRequest(java.lang.String snapshotId, java.lang.String availabilityZone)` Constructs a new CreateVolumeRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAvailabilityZone()` The Availability Zone in which to create the new volume.
    `java.lang.Integer` | `getIops()` Returns the value of the Iops property for this object.
    `java.lang.Integer` | `getSize()` The size of the volume, in gigabytes.
    `java.lang.String` | `getSnapshotId()` The ID of the snapshot from which to create the new volume.
    `java.lang.String` | `getVolumeType()` Returns the value of the VolumeType property for this object.
    `int` | `hashCode()`
    `void` | `setAvailabilityZone(java.lang.String availabilityZone)` The Availability Zone in which to create the new volume.
    `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 the volume, in gigabytes.
    `void` | `setSnapshotId(java.lang.String snapshotId)` The ID of the snapshot from which to create the new 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.
    `CreateVolumeRequest` | `withAvailabilityZone(java.lang.String availabilityZone)` The Availability Zone in which to create the new volume.
    `CreateVolumeRequest` | `withIops(java.lang.Integer iops)` Sets the value of the Iops property for this object.
    `CreateVolumeRequest` | `withSize(java.lang.Integer size)` The size of the volume, in gigabytes.
    `CreateVolumeRequest` | `withSnapshotId(java.lang.String snapshotId)` The ID of the snapshot from which to create the new volume.
    `CreateVolumeRequest` | `withVolumeType(java.lang.String volumeType)` Sets the value of the VolumeType property for this object.
    `CreateVolumeRequest` | `withVolumeType(VolumeType volumeType)` Sets the value of the VolumeType property for this object.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CreateVolumeRequest

          public CreateVolumeRequest()

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

    - #### CreateVolumeRequest

          public CreateVolumeRequest(java.lang.Integer size,
                             java.lang.String availabilityZone)

      Constructs a new CreateVolumeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `size` - The size of the volume, in gigabytes. Required if you are not creating a volume from a snapshot.
        `availabilityZone` - The Availability Zone in which to create the new volume.

    - #### CreateVolumeRequest

          public CreateVolumeRequest(java.lang.String snapshotId,
                             java.lang.String availabilityZone)

      Constructs a new CreateVolumeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `snapshotId` - The ID of the snapshot from which to create the new volume.
        `availabilityZone` - The Availability Zone in which to create the new volume.

  - ### メソッドの詳細

    - #### getSize

          public java.lang.Integer getSize()

      The size of the volume, in gigabytes. Required if you are not creating a volume from a snapshot.
      戻り値:
        The size of the volume, in gigabytes. Required if you are not creating a volume from a snapshot.

    - #### setSize

          public void setSize(java.lang.Integer size)

      The size of the volume, in gigabytes. Required if you are not creating a volume from a snapshot.
      パラメータ:
        `size` - The size of the volume, in gigabytes. Required if you are not creating a volume from a snapshot.

    - #### withSize

          public CreateVolumeRequest withSize(java.lang.Integer size)

      The size of the volume, in gigabytes. Required if you are not creating a volume from a snapshot.

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

      パラメータ:
        `size` - The size of the volume, in gigabytes. Required if you are not creating a volume from a snapshot.

    - #### getSnapshotId

          public java.lang.String getSnapshotId()

      The ID of the snapshot from which to create the new volume.
      戻り値:
        The ID of the snapshot from which to create the new volume.

    - #### setSnapshotId

          public void setSnapshotId(java.lang.String snapshotId)

      The ID of the snapshot from which to create the new volume.
      パラメータ:
        `snapshotId` - The ID of the snapshot from which to create the new volume.

    - #### withSnapshotId

          public CreateVolumeRequest withSnapshotId(java.lang.String snapshotId)

      The ID of the snapshot from which to create the new volume.

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

      パラメータ:
        `snapshotId` - The ID of the snapshot from which to create the new volume.

    - #### getAvailabilityZone

          public java.lang.String getAvailabilityZone()

      The Availability Zone in which to create the new volume.
      戻り値:
        The Availability Zone in which to create the new volume.

    - #### setAvailabilityZone

          public void setAvailabilityZone(java.lang.String availabilityZone)

      The Availability Zone in which to create the new volume.
      パラメータ:
        `availabilityZone` - The Availability Zone in which to create the new volume.

    - #### withAvailabilityZone

          public CreateVolumeRequest withAvailabilityZone(java.lang.String availabilityZone)

      The Availability Zone in which to create the new volume.

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

      パラメータ:
        `availabilityZone` - The Availability Zone in which to create the new 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 CreateVolumeRequest 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 CreateVolumeRequest 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 CreateVolumeRequest 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`