public class DeleteVolumeRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<DeleteVolumeRequest>
DeleteVolume operation
.
Deletes the specified 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 .
Constructor and Description |
---|
DeleteVolumeRequest()
Default constructor for a new DeleteVolumeRequest object.
|
DeleteVolumeRequest(java.lang.String volumeId)
Constructs a new DeleteVolumeRequest object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteVolumeRequest()
public DeleteVolumeRequest(java.lang.String volumeId)
volumeId
- The ID of the volume.public java.lang.String getVolumeId()
public void setVolumeId(java.lang.String volumeId)
volumeId
- The ID of the volume.public DeleteVolumeRequest withVolumeId(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.