public class DeleteVolumeRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DeleteVolumeRequest>
DeleteVolume operation.
Deletes the specified Amazon EBS volume. The volume must be in the available state (not attached to an instance).
NOTE: The volume remains in the deleting state for several minutes.
For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide .
| Constructor and Description |
|---|
DeleteVolumeRequest()
Default constructor for a new DeleteVolumeRequest object.
|
DeleteVolumeRequest(String volumeId)
Constructs a new DeleteVolumeRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Request<DeleteVolumeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getVolumeId()
The ID of the volume.
|
int |
hashCode() |
void |
setVolumeId(String volumeId)
The ID of the volume.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteVolumeRequest |
withVolumeId(String volumeId)
The ID of the volume.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic DeleteVolumeRequest()
public DeleteVolumeRequest(String volumeId)
volumeId - The ID of the volume.public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId - The ID of the volume.public DeleteVolumeRequest withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId - The ID of the volume.public Request<DeleteVolumeRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<DeleteVolumeRequest>public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.