com.amazonaws.services.elasticache.model
Class CreateSnapshotRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticache.model.CreateSnapshotRequest
All Implemented Interfaces:
Serializable

public class CreateSnapshotRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateSnapshot operation.

The CreateSnapshot operation creates a copy of an entire cache cluster at a specific moment in time.

See Also:
AmazonElastiCache.createSnapshot(CreateSnapshotRequest), Serialized Form

Constructor Summary
CreateSnapshotRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCacheClusterId()
          The identifier of an existing cache cluster.
 String getSnapshotName()
          A name for the snapshot being created.
 int hashCode()
           
 void setCacheClusterId(String cacheClusterId)
          The identifier of an existing cache cluster.
 void setSnapshotName(String snapshotName)
          A name for the snapshot being created.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateSnapshotRequest withCacheClusterId(String cacheClusterId)
          The identifier of an existing cache cluster.
 CreateSnapshotRequest withSnapshotName(String snapshotName)
          A name for the snapshot being created.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateSnapshotRequest

public CreateSnapshotRequest()
Method Detail

getCacheClusterId

public String getCacheClusterId()
The identifier of an existing cache cluster. The snapshot will be created from this cache cluster.

Returns:
The identifier of an existing cache cluster. The snapshot will be created from this cache cluster.

setCacheClusterId

public void setCacheClusterId(String cacheClusterId)
The identifier of an existing cache cluster. The snapshot will be created from this cache cluster.

Parameters:
cacheClusterId - The identifier of an existing cache cluster. The snapshot will be created from this cache cluster.

withCacheClusterId

public CreateSnapshotRequest withCacheClusterId(String cacheClusterId)
The identifier of an existing cache cluster. The snapshot will be created from this cache cluster.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cacheClusterId - The identifier of an existing cache cluster. The snapshot will be created from this cache cluster.
Returns:
A reference to this updated object so that method calls can be chained together.

getSnapshotName

public String getSnapshotName()
A name for the snapshot being created.

Returns:
A name for the snapshot being created.

setSnapshotName

public void setSnapshotName(String snapshotName)
A name for the snapshot being created.

Parameters:
snapshotName - A name for the snapshot being created.

withSnapshotName

public CreateSnapshotRequest withSnapshotName(String snapshotName)
A name for the snapshot being created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
snapshotName - A name for the snapshot being created.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.