public class CreateSnapshotRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CreateSnapshotRequest>
Contains the parameters for CreateSnapshot.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
A description for the snapshot.
|
private java.lang.String |
volumeId
The ID of the EBS volume.
|
NOOP
Constructor and Description |
---|
CreateSnapshotRequest()
Default constructor for CreateSnapshotRequest object.
|
CreateSnapshotRequest(java.lang.String volumeId,
java.lang.String description)
Constructs a new CreateSnapshotRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateSnapshotRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
A description for the snapshot.
|
Request<CreateSnapshotRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getVolumeId()
The ID of the EBS volume.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
A description for the snapshot.
|
void |
setVolumeId(java.lang.String volumeId)
The ID of the EBS volume.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSnapshotRequest |
withDescription(java.lang.String description)
A description for the snapshot.
|
CreateSnapshotRequest |
withVolumeId(java.lang.String volumeId)
The ID of the EBS volume.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String volumeId
The ID of the EBS volume.
private java.lang.String description
A description for the snapshot.
public CreateSnapshotRequest()
public CreateSnapshotRequest(java.lang.String volumeId, java.lang.String description)
volumeId
- The ID of the EBS volume.description
- A description for the snapshot.public void setVolumeId(java.lang.String volumeId)
The ID of the EBS volume.
volumeId
- The ID of the EBS volume.public java.lang.String getVolumeId()
The ID of the EBS volume.
public CreateSnapshotRequest withVolumeId(java.lang.String volumeId)
The ID of the EBS volume.
volumeId
- The ID of the EBS volume.public void setDescription(java.lang.String description)
A description for the snapshot.
description
- A description for the snapshot.public java.lang.String getDescription()
A description for the snapshot.
public CreateSnapshotRequest withDescription(java.lang.String description)
A description for the snapshot.
description
- A description for the snapshot.public Request<CreateSnapshotRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateSnapshotRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()