public class CreateSnapshotRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents the input of a CreateSnapshot action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cacheClusterId
The identifier of an existing cache cluster.
|
private java.lang.String |
snapshotName
A name for the snapshot being created.
|
NOOP
Constructor and Description |
---|
CreateSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSnapshotRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCacheClusterId()
The identifier of an existing cache cluster.
|
java.lang.String |
getSnapshotName()
A name for the snapshot being created.
|
int |
hashCode() |
void |
setCacheClusterId(java.lang.String cacheClusterId)
The identifier of an existing cache cluster.
|
void |
setSnapshotName(java.lang.String snapshotName)
A name for the snapshot being created.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSnapshotRequest |
withCacheClusterId(java.lang.String cacheClusterId)
The identifier of an existing cache cluster.
|
CreateSnapshotRequest |
withSnapshotName(java.lang.String snapshotName)
A name for the snapshot being created.
|
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 cacheClusterId
The identifier of an existing cache cluster. The snapshot will be created from this cache cluster.
private java.lang.String snapshotName
A name for the snapshot being created.
public void setCacheClusterId(java.lang.String cacheClusterId)
The identifier of an existing cache cluster. The snapshot will be created from this cache cluster.
cacheClusterId
- The identifier of an existing cache cluster. The snapshot will be
created from this cache cluster.public java.lang.String getCacheClusterId()
The identifier of an existing cache cluster. The snapshot will be created from this cache cluster.
public CreateSnapshotRequest withCacheClusterId(java.lang.String cacheClusterId)
The identifier of an existing cache cluster. The snapshot will be created from this cache cluster.
cacheClusterId
- The identifier of an existing cache cluster. The snapshot will be
created from this cache cluster.public void setSnapshotName(java.lang.String snapshotName)
A name for the snapshot being created.
snapshotName
- A name for the snapshot being created.public java.lang.String getSnapshotName()
A name for the snapshot being created.
public CreateSnapshotRequest withSnapshotName(java.lang.String snapshotName)
A name for the snapshot being created.
snapshotName
- A name for the snapshot being created.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()