public class CreateVolumeRequest extends AmazonWebServiceRequest implements java.io.Serializable
CreateVolume operation.
Initializes an empty volume of a given size.
| コンストラクタと説明 |
|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic CreateVolumeRequest()
public CreateVolumeRequest(java.lang.Integer size,
java.lang.String availabilityZone)
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.public CreateVolumeRequest(java.lang.String snapshotId,
java.lang.String availabilityZone)
snapshotId - The ID of the snapshot from which to create the new
volume.availabilityZone - The Availability Zone in which to create the
new volume.public java.lang.Integer getSize()
public void setSize(java.lang.Integer size)
size - The size of the volume, in gigabytes. Required if you are not creating
a volume from a snapshot.public CreateVolumeRequest withSize(java.lang.Integer size)
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.public java.lang.String getSnapshotId()
public void setSnapshotId(java.lang.String snapshotId)
snapshotId - The ID of the snapshot from which to create the new volume.public CreateVolumeRequest withSnapshotId(java.lang.String snapshotId)
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.public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone - The Availability Zone in which to create the new volume.public CreateVolumeRequest withAvailabilityZone(java.lang.String availabilityZone)
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.public java.lang.String getVolumeType()
Constraints:
Allowed Values: standard, io1
VolumeTypepublic void setVolumeType(java.lang.String volumeType)
Constraints:
Allowed Values: standard, io1
volumeType - The new value for the VolumeType property for this object.VolumeTypepublic CreateVolumeRequest withVolumeType(java.lang.String volumeType)
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.VolumeTypepublic void setVolumeType(VolumeType volumeType)
Constraints:
Allowed Values: standard, io1
volumeType - The new value for the VolumeType property for this object.VolumeTypepublic CreateVolumeRequest withVolumeType(VolumeType volumeType)
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.VolumeTypepublic java.lang.Integer getIops()
public void setIops(java.lang.Integer iops)
iops - The new value for the Iops property for this object.public CreateVolumeRequest withIops(java.lang.Integer iops)
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.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object