com.amazonaws.services.ec2.model
Class CreateSnapshotRequest

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

public class CreateSnapshotRequest
extends AmazonWebServiceRequest

Represents a request to create a snapshot from an Elastic Block Storage (EBS) volume.


Constructor Summary
CreateSnapshotRequest()
           
 
Method Summary
 String getDescription()
          The description for the new snapshot.
 String getVolumeId()
          The ID of the volume from which to create the snapshot.
 void setDescription(String description)
          The description for the new snapshot.
 void setVolumeId(String volumeId)
          The ID of the volume from which to create the snapshot.
 String toString()
           
 CreateSnapshotRequest withDescription(String description)
          The description for the new snapshot.
 CreateSnapshotRequest withVolumeId(String volumeId)
          The ID of the volume from which to create the snapshot.
 
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

CreateSnapshotRequest

public CreateSnapshotRequest()
Method Detail

getVolumeId

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

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

setVolumeId

public void setVolumeId(String volumeId)
The ID of the volume from which to create the snapshot.

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

withVolumeId

public CreateSnapshotRequest withVolumeId(String volumeId)
The ID of the volume from which to create the snapshot.

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

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

getDescription

public String getDescription()
The description for the new snapshot.

Returns:
The description for the new snapshot.

setDescription

public void setDescription(String description)
The description for the new snapshot.

Parameters:
description - The description for the new snapshot.

withDescription

public CreateSnapshotRequest withDescription(String description)
The description for the new snapshot.

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

Parameters:
description - The description for the new snapshot.
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.