|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.DeleteSnapshotRequest
public class DeleteSnapshotRequest
Container for the parameters to the 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 .
AmazonEC2.deleteSnapshot(DeleteSnapshotRequest)
,
Serialized FormConstructor Summary | |
---|---|
DeleteSnapshotRequest()
Default constructor for a new DeleteSnapshotRequest object. |
|
DeleteSnapshotRequest(java.lang.String snapshotId)
Constructs a new DeleteSnapshotRequest object. |
Method Summary | |
---|---|
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 Amazon EBS snapshot. |
int |
hashCode()
|
void |
setSnapshotId(java.lang.String snapshotId)
The ID of the Amazon 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 Amazon EBS snapshot. |
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 |
---|
public DeleteSnapshotRequest()
public DeleteSnapshotRequest(java.lang.String snapshotId)
snapshotId
- The ID of the Amazon EBS snapshot.Method Detail |
---|
public java.lang.String getSnapshotId()
public void setSnapshotId(java.lang.String snapshotId)
snapshotId
- The ID of the Amazon 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 Amazon 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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |