@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateSnapshotRequest>
Contains the parameters for CreateSnapshot.
NOOP| Constructor and Description |
|---|
CreateSnapshotRequest()
Default constructor for CreateSnapshotRequest object.
|
CreateSnapshotRequest(String volumeId,
String description)
Constructs a new CreateSnapshotRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
CreateSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
A description for the snapshot.
|
Request<CreateSnapshotRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getVolumeId()
The ID of the EBS volume.
|
int |
hashCode() |
void |
setDescription(String description)
A description for the snapshot.
|
void |
setVolumeId(String volumeId)
The ID of the EBS volume.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateSnapshotRequest |
withDescription(String description)
A description for the snapshot.
|
CreateSnapshotRequest |
withVolumeId(String volumeId)
The ID of the EBS volume.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic CreateSnapshotRequest()
public CreateSnapshotRequest(String volumeId, String description)
volumeId - The ID of the EBS volume.description - A description for the snapshot.public void setDescription(String description)
A description for the snapshot.
description - A description for the snapshot.public String getDescription()
A description for the snapshot.
public CreateSnapshotRequest withDescription(String description)
A description for the snapshot.
description - A description for the snapshot.public void setVolumeId(String volumeId)
The ID of the EBS volume.
volumeId - The ID of the EBS volume.public String getVolumeId()
The ID of the EBS volume.
public CreateSnapshotRequest withVolumeId(String volumeId)
The ID of the EBS volume.
volumeId - The ID of the EBS volume.public Request<CreateSnapshotRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateSnapshotRequest>public String toString()
toString in class ObjectObject.toString()public CreateSnapshotRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.