public class CreateSnapshotRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
| コンストラクタと説明 |
|---|
CreateSnapshotRequest()
Default constructor for a new CreateSnapshotRequest object.
|
CreateSnapshotRequest(java.lang.String volumeId,
java.lang.String description)
Constructs a new CreateSnapshotRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
The description for the new snapshot.
|
java.lang.String |
getVolumeId()
The ID of the volume from which to create the snapshot.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
The description for the new snapshot.
|
void |
setVolumeId(java.lang.String volumeId)
The ID of the volume from which to create the snapshot.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSnapshotRequest |
withDescription(java.lang.String description)
The description for the new snapshot.
|
CreateSnapshotRequest |
withVolumeId(java.lang.String volumeId)
The ID of the volume from which to create the snapshot.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic CreateSnapshotRequest()
public CreateSnapshotRequest(java.lang.String volumeId,
java.lang.String description)
volumeId - The ID of the volume from which to create the
snapshot.description - The description for the new snapshot.public java.lang.String getVolumeId()
public void setVolumeId(java.lang.String volumeId)
volumeId - The ID of the volume from which to create the snapshot.public CreateSnapshotRequest 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 from which to create the snapshot.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description for the new snapshot.public CreateSnapshotRequest withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description - The description for the new snapshot.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object