|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateVolumeRequest
public class CreateVolumeRequest
A request to create a new Amazon EC2 Elastic Block Storage (EBS) volume.
Constructor Summary | |
---|---|
CreateVolumeRequest()
|
Method Summary | |
---|---|
String |
getAvailabilityZone()
The Availability Zone in which to create the new volume. |
Integer |
getSize()
The size of the volume, in gigabytes. |
String |
getSnapshotId()
The ID of the snapshot from which to create the new volume. |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which to create the new volume. |
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. |
String |
toString()
|
CreateVolumeRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which to create the new volume. |
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateVolumeRequest()
Method Detail |
---|
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 toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |