public class DeleteSnapshotRequest extends AmazonWebServiceRequest implements java.io.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 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 .
Constructor and Description |
---|
DeleteSnapshotRequest()
Default constructor for a new DeleteSnapshotRequest object.
|
DeleteSnapshotRequest(java.lang.String snapshotId)
Constructs a new DeleteSnapshotRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Request<DeleteSnapshotRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getSnapshotId()
The ID of the EBS snapshot.
|
int |
hashCode() |
void |
setSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteSnapshotRequest |
withSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteSnapshotRequest()
public DeleteSnapshotRequest(java.lang.String snapshotId)
snapshotId
- The ID of the EBS snapshot.public java.lang.String getSnapshotId()
public void setSnapshotId(java.lang.String snapshotId)
snapshotId
- The ID of the EBS snapshot.public DeleteSnapshotRequest withSnapshotId(java.lang.String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- The ID of the EBS snapshot.public Request<DeleteSnapshotRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DeleteSnapshotRequest>
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.