com.amazonaws.services.ec2.model
Class DeleteSnapshotRequest

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

public class DeleteSnapshotRequest
extends AmazonWebServiceRequest

Container for the parameters to the DeleteSnapshot operation.

Deletes the snapshot identified by snapshotId .

See Also:
AmazonEC2.deleteSnapshot(DeleteSnapshotRequest)

Constructor Summary
DeleteSnapshotRequest()
          Default constructor for a new DeleteSnapshotRequest object.
DeleteSnapshotRequest(String snapshotId)
          Constructs a new DeleteSnapshotRequest object.
 
Method Summary
 String getSnapshotId()
          The ID of the snapshot to delete.
 void setSnapshotId(String snapshotId)
          The ID of the snapshot to delete.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteSnapshotRequest withSnapshotId(String snapshotId)
          The ID of the snapshot to delete.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeleteSnapshotRequest

public DeleteSnapshotRequest()
Default constructor for a new DeleteSnapshotRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DeleteSnapshotRequest

public DeleteSnapshotRequest(String snapshotId)
Constructs a new DeleteSnapshotRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
snapshotId - The ID of the snapshot to delete.
Method Detail

getSnapshotId

public String getSnapshotId()
The ID of the snapshot to delete.

Returns:
The ID of the snapshot to delete.

setSnapshotId

public void setSnapshotId(String snapshotId)
The ID of the snapshot to delete.

Parameters:
snapshotId - The ID of the snapshot to delete.

withSnapshotId

public DeleteSnapshotRequest withSnapshotId(String snapshotId)
The ID of the snapshot to delete.

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

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

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()


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