com.amazonaws.services.ec2.model
Class DeleteVolumeRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DeleteVolumeRequest
All Implemented Interfaces:
DryRunSupportedRequest<DeleteVolumeRequest>, java.io.Serializable

public class DeleteVolumeRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<DeleteVolumeRequest>

Container for the parameters to the DeleteVolume operation.

Deletes the specified Amazon EBS volume. The volume must be in the available state (not attached to an instance).

NOTE: The volume may remain in the deleting state for several minutes.

For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.deleteVolume(DeleteVolumeRequest), Serialized Form

Constructor Summary
DeleteVolumeRequest()
          Default constructor for a new DeleteVolumeRequest object.
DeleteVolumeRequest(java.lang.String volumeId)
          Constructs a new DeleteVolumeRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<DeleteVolumeRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getVolumeId()
          The ID of the volume.
 int hashCode()
           
 void setVolumeId(java.lang.String volumeId)
          The ID of the volume.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteVolumeRequest withVolumeId(java.lang.String volumeId)
          The ID of the volume.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
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(java.lang.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 volume.
Method Detail

getVolumeId

public java.lang.String getVolumeId()
The ID of the volume.

Returns:
The ID of the volume.

setVolumeId

public void setVolumeId(java.lang.String volumeId)
The ID of the volume.

Parameters:
volumeId - The ID of the volume.

withVolumeId

public DeleteVolumeRequest withVolumeId(java.lang.String volumeId)
The ID of the volume.

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

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

getDryRunRequest

public Request<DeleteVolumeRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<DeleteVolumeRequest>

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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