public class DeleteSnapshotRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DeleteSnapshotRequest>
DeleteSnapshot operation
.
Deletes the specified snapshot.
When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.
You cannot delete a snapshot of the root device of an Amazon EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.
For more information, see Deleting an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide .
NOOP
Constructor and Description |
---|
DeleteSnapshotRequest()
Default constructor for a new DeleteSnapshotRequest object.
|
DeleteSnapshotRequest(String snapshotId)
Constructs a new DeleteSnapshotRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<DeleteSnapshotRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getSnapshotId()
The ID of the Amazon EBS snapshot.
|
int |
hashCode() |
void |
setSnapshotId(String snapshotId)
The ID of the Amazon EBS snapshot.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteSnapshotRequest |
withSnapshotId(String snapshotId)
The ID of the Amazon EBS snapshot.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteSnapshotRequest()
public DeleteSnapshotRequest(String snapshotId)
snapshotId
- The ID of the Amazon EBS snapshot.public String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId
- The ID of the Amazon EBS snapshot.public DeleteSnapshotRequest withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- The ID of the Amazon EBS snapshot.public Request<DeleteSnapshotRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DeleteSnapshotRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.