com.amazonaws.services.ec2.model
Class CreateVolumeRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateVolumeRequest

public class CreateVolumeRequest
extends AmazonWebServiceRequest

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

CreateVolumeRequest

public CreateVolumeRequest()
Method Detail

getSize

public Integer getSize()
The size of the volume, in gigabytes. Required if you are not creating a volume from a snapshot.

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

setSize

public void setSize(Integer size)
The size of the volume, in gigabytes. Required if you are not creating a volume from a snapshot.

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

withSize

public CreateVolumeRequest withSize(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.

Parameters:
size - The size of the volume, in gigabytes. Required if you are not creating a volume from a snapshot.
Returns:
A reference to this updated object so that method calls can be chained together.

getSnapshotId

public String getSnapshotId()
The ID of the snapshot from which to create the new volume.

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

setSnapshotId

public void setSnapshotId(String snapshotId)
The ID of the snapshot from which to create the new volume.

Parameters:
snapshotId - The ID of the snapshot from which to create the new volume.

withSnapshotId

public CreateVolumeRequest withSnapshotId(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.

Parameters:
snapshotId - The ID of the snapshot from which to create the new volume.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZone

public String getAvailabilityZone()
The Availability Zone in which to create the new volume.

Returns:
The Availability Zone in which to create the new volume.

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which to create the new volume.

Parameters:
availabilityZone - The Availability Zone in which to create the new volume.

withAvailabilityZone

public CreateVolumeRequest withAvailabilityZone(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.

Parameters:
availabilityZone - The Availability Zone in which to create the new volume.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.