@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateServerlessCacheSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateServerlessCacheSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
CreateServerlessCacheSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getKmsKeyId()
The ID of the KMS key used to encrypt the snapshot.
|
String |
getServerlessCacheName()
The name of an existing serverless cache.
|
String |
getServerlessCacheSnapshotName()
The name for the snapshot being created.
|
List<Tag> |
getTags()
A list of tags to be added to the snapshot resource.
|
int |
hashCode() |
void |
setKmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the snapshot.
|
void |
setServerlessCacheName(String serverlessCacheName)
The name of an existing serverless cache.
|
void |
setServerlessCacheSnapshotName(String serverlessCacheSnapshotName)
The name for the snapshot being created.
|
void |
setTags(Collection<Tag> tags)
A list of tags to be added to the snapshot resource.
|
String |
toString()
Returns a string representation of this object.
|
CreateServerlessCacheSnapshotRequest |
withKmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the snapshot.
|
CreateServerlessCacheSnapshotRequest |
withServerlessCacheName(String serverlessCacheName)
The name of an existing serverless cache.
|
CreateServerlessCacheSnapshotRequest |
withServerlessCacheSnapshotName(String serverlessCacheSnapshotName)
The name for the snapshot being created.
|
CreateServerlessCacheSnapshotRequest |
withTags(Collection<Tag> tags)
A list of tags to be added to the snapshot resource.
|
CreateServerlessCacheSnapshotRequest |
withTags(Tag... tags)
A list of tags to be added to the snapshot 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 CreateServerlessCacheSnapshotRequest()
public void setServerlessCacheSnapshotName(String serverlessCacheSnapshotName)
The name for the snapshot being created. Must be unique for the customer account. Available for Redis only. Must be between 1 and 255 characters.
serverlessCacheSnapshotName
- The name for the snapshot being created. Must be unique for the customer account. Available for Redis
only. Must be between 1 and 255 characters.public String getServerlessCacheSnapshotName()
The name for the snapshot being created. Must be unique for the customer account. Available for Redis only. Must be between 1 and 255 characters.
public CreateServerlessCacheSnapshotRequest withServerlessCacheSnapshotName(String serverlessCacheSnapshotName)
The name for the snapshot being created. Must be unique for the customer account. Available for Redis only. Must be between 1 and 255 characters.
serverlessCacheSnapshotName
- The name for the snapshot being created. Must be unique for the customer account. Available for Redis
only. Must be between 1 and 255 characters.public void setServerlessCacheName(String serverlessCacheName)
The name of an existing serverless cache. The snapshot is created from this cache. Available for Redis only.
serverlessCacheName
- The name of an existing serverless cache. The snapshot is created from this cache. Available for Redis
only.public String getServerlessCacheName()
The name of an existing serverless cache. The snapshot is created from this cache. Available for Redis only.
public CreateServerlessCacheSnapshotRequest withServerlessCacheName(String serverlessCacheName)
The name of an existing serverless cache. The snapshot is created from this cache. Available for Redis only.
serverlessCacheName
- The name of an existing serverless cache. The snapshot is created from this cache. Available for Redis
only.public void setKmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the snapshot. Available for Redis only. Default: NULL
kmsKeyId
- The ID of the KMS key used to encrypt the snapshot. Available for Redis only. Default: NULLpublic String getKmsKeyId()
The ID of the KMS key used to encrypt the snapshot. Available for Redis only. Default: NULL
public CreateServerlessCacheSnapshotRequest withKmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the snapshot. Available for Redis only. Default: NULL
kmsKeyId
- The ID of the KMS key used to encrypt the snapshot. Available for Redis only. Default: NULLpublic List<Tag> getTags()
A list of tags to be added to the snapshot resource. A tag is a key-value pair. Available for Redis only.
public void setTags(Collection<Tag> tags)
A list of tags to be added to the snapshot resource. A tag is a key-value pair. Available for Redis only.
tags
- A list of tags to be added to the snapshot resource. A tag is a key-value pair. Available for Redis only.public CreateServerlessCacheSnapshotRequest withTags(Tag... tags)
A list of tags to be added to the snapshot resource. A tag is a key-value pair. Available for Redis only.
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 the snapshot resource. A tag is a key-value pair. Available for Redis only.public CreateServerlessCacheSnapshotRequest withTags(Collection<Tag> tags)
A list of tags to be added to the snapshot resource. A tag is a key-value pair. Available for Redis only.
tags
- A list of tags to be added to the snapshot resource. A tag is a key-value pair. Available for Redis only.public String toString()
toString
in class Object
Object.toString()
public CreateServerlessCacheSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()