com.amazonaws.services.ec2.model
Class DeleteVolumeRequest

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

public class DeleteVolumeRequest
extends AmazonWebServiceRequest

Container for the parameters to the DeleteVolume operation.

Deletes a previously created volume. Once successfully deleted, a new volume can be created with the same name.

See Also:
AmazonEC2.deleteVolume(DeleteVolumeRequest)

Constructor Summary
DeleteVolumeRequest()
          Default constructor for a new DeleteVolumeRequest object.
DeleteVolumeRequest(String volumeId)
          Constructs a new DeleteVolumeRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getVolumeId()
          The ID of the EBS volume to delete.
 int hashCode()
           
 void setVolumeId(String volumeId)
          The ID of the EBS volume to delete.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteVolumeRequest withVolumeId(String volumeId)
          The ID of the EBS volume to delete.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeleteVolumeRequest

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


DeleteVolumeRequest

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

Parameters:
volumeId - The ID of the EBS volume to delete.
Method Detail

getVolumeId

public String getVolumeId()
The ID of the EBS volume to delete.

Returns:
The ID of the EBS volume to delete.

setVolumeId

public void setVolumeId(String volumeId)
The ID of the EBS volume to delete.

Parameters:
volumeId - The ID of the EBS volume to delete.

withVolumeId

public DeleteVolumeRequest withVolumeId(String volumeId)
The ID of the EBS volume to delete.

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

Parameters:
volumeId - The ID of the EBS volume 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()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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