public class CreateVolumeRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<CreateVolumeRequest>
CreateVolume operation
.
Initializes an empty volume of a given size.
Constructor and Description |
---|
CreateVolumeRequest()
Default constructor for a new CreateVolumeRequest object.
|
CreateVolumeRequest(Integer size,
String availabilityZone)
Constructs a new CreateVolumeRequest object.
|
CreateVolumeRequest(String snapshotId,
String availabilityZone)
Constructs a new CreateVolumeRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone in which to create the new volume.
|
Request<CreateVolumeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Integer |
getIops()
Returns the value of the Iops property for this object.
|
Integer |
getSize()
The size of the volume, in gigabytes.
|
String |
getSnapshotId()
The ID of the snapshot from which to create the new volume.
|
String |
getVolumeType()
Returns the value of the VolumeType property for this object.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which to create the new volume.
|
void |
setIops(Integer iops)
Sets the value of the Iops property for this object.
|
void |
setSize(Integer size)
The size of the volume, in gigabytes.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot from which to create the new volume.
|
void |
setVolumeType(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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVolumeRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which to create the new volume.
|
CreateVolumeRequest |
withIops(Integer iops)
Sets the value of the Iops property for this object.
|
CreateVolumeRequest |
withSize(Integer size)
The size of the volume, in gigabytes.
|
CreateVolumeRequest |
withSnapshotId(String snapshotId)
The ID of the snapshot from which to create the new volume.
|
CreateVolumeRequest |
withVolumeType(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, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public CreateVolumeRequest()
public CreateVolumeRequest(Integer size, 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(String snapshotId, 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 Integer getSize()
public void setSize(Integer size)
size
- The size of the volume, in gigabytes. Required if you are not creating
a volume from a snapshot.public CreateVolumeRequest withSize(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 String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId
- The ID of the snapshot from which to create the new volume.public CreateVolumeRequest withSnapshotId(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 String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone in which to create the new volume.public CreateVolumeRequest withAvailabilityZone(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 String getVolumeType()
Constraints:
Allowed Values: standard, io1
VolumeType
public void setVolumeType(String volumeType)
Constraints:
Allowed Values: standard, io1
volumeType
- The new value for the VolumeType property for this object.VolumeType
public CreateVolumeRequest withVolumeType(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.VolumeType
public void setVolumeType(VolumeType volumeType)
Constraints:
Allowed Values: standard, io1
volumeType
- The new value for the VolumeType property for this object.VolumeType
public 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.VolumeType
public Integer getIops()
public void setIops(Integer iops)
iops
- The new value for the Iops property for this object.public CreateVolumeRequest withIops(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 Request<CreateVolumeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateVolumeRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.