@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateSnapshotRequest() |
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 |
getClientRequestToken() |
String |
getName()
The name of the snapshot.
|
List<Tag> |
getTags() |
String |
getVolumeId()
The ID of the volume that you are taking a snapshot of.
|
int |
hashCode() |
void |
setClientRequestToken(String clientRequestToken) |
void |
setName(String name)
The name of the snapshot.
|
void |
setTags(Collection<Tag> tags) |
void |
setVolumeId(String volumeId)
The ID of the volume that you are taking a snapshot of.
|
String |
toString()
Returns a string representation of this object.
|
CreateSnapshotRequest |
withClientRequestToken(String clientRequestToken) |
CreateSnapshotRequest |
withName(String name)
The name of the snapshot.
|
CreateSnapshotRequest |
withTags(Collection<Tag> tags) |
CreateSnapshotRequest |
withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if any).
|
CreateSnapshotRequest |
withVolumeId(String volumeId)
The ID of the volume that you are taking a snapshot of.
|
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, withSdkRequestTimeout
public void setClientRequestToken(String clientRequestToken)
clientRequestToken
- public String getClientRequestToken()
public CreateSnapshotRequest withClientRequestToken(String clientRequestToken)
clientRequestToken
- public void setName(String name)
The name of the snapshot.
name
- The name of the snapshot.public String getName()
The name of the snapshot.
public CreateSnapshotRequest withName(String name)
The name of the snapshot.
name
- The name of the snapshot.public void setVolumeId(String volumeId)
The ID of the volume that you are taking a snapshot of.
volumeId
- The ID of the volume that you are taking a snapshot of.public String getVolumeId()
The ID of the volume that you are taking a snapshot of.
public CreateSnapshotRequest withVolumeId(String volumeId)
The ID of the volume that you are taking a snapshot of.
volumeId
- The ID of the volume that you are taking a snapshot of.public void setTags(Collection<Tag> tags)
tags
- public CreateSnapshotRequest withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- public CreateSnapshotRequest withTags(Collection<Tag> tags)
tags
- public String toString()
toString
in class Object
Object.toString()
public CreateSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()