Class CreateSnapshotRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.elasticache.model.CreateSnapshotRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class CreateSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

Represents the input of a CreateSnapshot action.

See Also:
  • Constructor Details

    • CreateSnapshotRequest

      public CreateSnapshotRequest()
  • Method Details

    • 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.
    • 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.
    • withCacheClusterId

      public CreateSnapshotRequest withCacheClusterId(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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSnapshotName

      public void setSnapshotName(String snapshotName)

      A name for the snapshot being created.

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

      public String getSnapshotName()

      A name for the snapshot being created.

      Returns:
      A name for the snapshot being created.
    • withSnapshotName

      public CreateSnapshotRequest withSnapshotName(String snapshotName)

      A name for the snapshot being created.

      Parameters:
      snapshotName - A name for the snapshot being created.
      Returns:
      Returns a reference to this 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:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public CreateSnapshotRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: