|
|||||||
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.CreateSnapshotRequest
public class CreateSnapshotRequest
Container for the parameters to the CreateSnapshot operation
.
Create a snapshot of the volume identified by volume ID. A volume does not have to be detached at the time the snapshot is taken.
NOTE: Snapshot creation requires that the system is in a consistent state. For instance, this means that if taking a snapshot of a database, the tables must be read-only locked to ensure that the snapshot will not contain a corrupted version of the database. Therefore, be careful when using this API to ensure that the system remains in the consistent state until the create snapshot status has returned.
AmazonEC2.createSnapshot(CreateSnapshotRequest)
Constructor Summary | |
---|---|
CreateSnapshotRequest()
Default constructor for a new CreateSnapshotRequest object. |
|
CreateSnapshotRequest(String volumeId,
String description)
Constructs a new CreateSnapshotRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getDescription()
The description for the new snapshot. |
String |
getVolumeId()
The ID of the volume from which to create the snapshot. |
int |
hashCode()
|
void |
setDescription(String description)
The description for the new snapshot. |
void |
setVolumeId(String volumeId)
The ID of the volume from which to create the snapshot. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateSnapshotRequest |
withDescription(String description)
The description for the new snapshot. |
CreateSnapshotRequest |
withVolumeId(String volumeId)
The ID of the volume from which to create the snapshot. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateSnapshotRequest()
public CreateSnapshotRequest(String volumeId, String description)
volumeId
- The ID of the volume from which to create the
snapshot.description
- The description for the new snapshot.Method Detail |
---|
public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId
- The ID of the volume from which to create the snapshot.public CreateSnapshotRequest withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The ID of the volume from which to create the snapshot.
public String getDescription()
public void setDescription(String description)
description
- The description for the new snapshot.public CreateSnapshotRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- The description for the new snapshot.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |