@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 |
getClusterName()
The snapshot is created from this cluster.
|
String |
getKmsKeyId()
The ID of the KMS key used to encrypt the snapshot.
|
String |
getSnapshotName()
A name for the snapshot being created.
|
List<Tag> |
getTags()
A list of tags to be added to this resource.
|
int |
hashCode() |
void |
setClusterName(String clusterName)
The snapshot is created from this cluster.
|
void |
setKmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the snapshot.
|
void |
setSnapshotName(String snapshotName)
A name for the snapshot being created.
|
void |
setTags(Collection<Tag> tags)
A list of tags to be added to this resource.
|
String |
toString()
Returns a string representation of this object.
|
CreateSnapshotRequest |
withClusterName(String clusterName)
The snapshot is created from this cluster.
|
CreateSnapshotRequest |
withKmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the snapshot.
|
CreateSnapshotRequest |
withSnapshotName(String snapshotName)
A name for the snapshot being created.
|
CreateSnapshotRequest |
withTags(Collection<Tag> tags)
A list of tags to be added to this resource.
|
CreateSnapshotRequest |
withTags(Tag... tags)
A list of tags to be added to this resource.
|
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 setClusterName(String clusterName)
The snapshot is created from this cluster.
clusterName
- The snapshot is created from this cluster.public String getClusterName()
The snapshot is created from this cluster.
public CreateSnapshotRequest withClusterName(String clusterName)
The snapshot is created from this cluster.
clusterName
- The snapshot is created from this cluster.public void setSnapshotName(String snapshotName)
A name for the snapshot being created.
snapshotName
- A name for the snapshot being created.public String getSnapshotName()
A name for the snapshot being created.
public CreateSnapshotRequest withSnapshotName(String snapshotName)
A name for the snapshot being created.
snapshotName
- A name for the snapshot being created.public void setKmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the snapshot.
kmsKeyId
- The ID of the KMS key used to encrypt the snapshot.public String getKmsKeyId()
The ID of the KMS key used to encrypt the snapshot.
public CreateSnapshotRequest withKmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the snapshot.
kmsKeyId
- The ID of the KMS key used to encrypt the snapshot.public List<Tag> getTags()
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
public void setTags(Collection<Tag> tags)
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
tags
- A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a
tag value, although null is accepted.public CreateSnapshotRequest withTags(Tag... tags)
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
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
- A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a
tag value, although null is accepted.public CreateSnapshotRequest withTags(Collection<Tag> tags)
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
tags
- A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a
tag value, although null is accepted.public String toString()
toString
in class Object
Object.toString()
public CreateSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()