Class PendingModifiedValues

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

public class PendingModifiedValues extends Object implements Serializable, Cloneable

A group of settings that will be applied to the cache cluster in the future, or that are currently being applied.

See Also:
  • Constructor Details

    • PendingModifiedValues

      public PendingModifiedValues()
  • Method Details

    • setNumCacheNodes

      public void setNumCacheNodes(Integer numCacheNodes)

      The new number of cache nodes for the cache cluster.

      For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

      Parameters:
      numCacheNodes - The new number of cache nodes for the cache cluster.

      For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

    • getNumCacheNodes

      public Integer getNumCacheNodes()

      The new number of cache nodes for the cache cluster.

      For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

      Returns:
      The new number of cache nodes for the cache cluster.

      For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

    • withNumCacheNodes

      public PendingModifiedValues withNumCacheNodes(Integer numCacheNodes)

      The new number of cache nodes for the cache cluster.

      For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

      Parameters:
      numCacheNodes - The new number of cache nodes for the cache cluster.

      For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

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

      public List<String> getCacheNodeIdsToRemove()

      A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).

      Returns:
      A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
    • setCacheNodeIdsToRemove

      public void setCacheNodeIdsToRemove(Collection<String> cacheNodeIdsToRemove)

      A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).

      Parameters:
      cacheNodeIdsToRemove - A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
    • withCacheNodeIdsToRemove

      public PendingModifiedValues withCacheNodeIdsToRemove(String... cacheNodeIdsToRemove)

      A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).

      NOTE: This method appends the values to the existing list (if any). Use setCacheNodeIdsToRemove(java.util.Collection) or withCacheNodeIdsToRemove(java.util.Collection) if you want to override the existing values.

      Parameters:
      cacheNodeIdsToRemove - A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withCacheNodeIdsToRemove

      public PendingModifiedValues withCacheNodeIdsToRemove(Collection<String> cacheNodeIdsToRemove)

      A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).

      Parameters:
      cacheNodeIdsToRemove - A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setEngineVersion

      public void setEngineVersion(String engineVersion)

      The new cache engine version that the cache cluster will run.

      Parameters:
      engineVersion - The new cache engine version that the cache cluster will run.
    • getEngineVersion

      public String getEngineVersion()

      The new cache engine version that the cache cluster will run.

      Returns:
      The new cache engine version that the cache cluster will run.
    • withEngineVersion

      public PendingModifiedValues withEngineVersion(String engineVersion)

      The new cache engine version that the cache cluster will run.

      Parameters:
      engineVersion - The new cache engine version that the cache cluster will run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCacheNodeType

      public void setCacheNodeType(String cacheNodeType)

      The cache node type that this cache cluster or replication group will be scaled to.

      Parameters:
      cacheNodeType - The cache node type that this cache cluster or replication group will be scaled to.
    • getCacheNodeType

      public String getCacheNodeType()

      The cache node type that this cache cluster or replication group will be scaled to.

      Returns:
      The cache node type that this cache cluster or replication group will be scaled to.
    • withCacheNodeType

      public PendingModifiedValues withCacheNodeType(String cacheNodeType)

      The cache node type that this cache cluster or replication group will be scaled to.

      Parameters:
      cacheNodeType - The cache node type that this cache cluster or replication group will be scaled to.
      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 PendingModifiedValues clone()
      Overrides:
      clone in class Object