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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PendingModifiedValues()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PendingModifiedValues
clone()
boolean
equals(Object obj)
List<String>
getCacheNodeIdsToRemove()
A list of cache node IDs that are being removed (or will be removed) from the cache cluster.String
getCacheNodeType()
The cache node type that this cache cluster or replication group will be scaled to.String
getEngineVersion()
The new cache engine version that the cache cluster will run.Integer
getNumCacheNodes()
The new number of cache nodes for the cache cluster.int
hashCode()
void
setCacheNodeIdsToRemove(Collection<String> cacheNodeIdsToRemove)
A list of cache node IDs that are being removed (or will be removed) from the cache cluster.void
setCacheNodeType(String cacheNodeType)
The cache node type that this cache cluster or replication group will be scaled to.void
setEngineVersion(String engineVersion)
The new cache engine version that the cache cluster will run.void
setNumCacheNodes(Integer numCacheNodes)
The new number of cache nodes for the cache cluster.String
toString()
Returns a string representation of this object; useful for testing and debugging.PendingModifiedValues
withCacheNodeIdsToRemove(String... cacheNodeIdsToRemove)
A list of cache node IDs that are being removed (or will be removed) from the cache cluster.PendingModifiedValues
withCacheNodeIdsToRemove(Collection<String> cacheNodeIdsToRemove)
A list of cache node IDs that are being removed (or will be removed) from the cache cluster.PendingModifiedValues
withCacheNodeType(String cacheNodeType)
The cache node type that this cache cluster or replication group will be scaled to.PendingModifiedValues
withEngineVersion(String engineVersion)
The new cache engine version that the cache cluster will run.PendingModifiedValues
withNumCacheNodes(Integer numCacheNodes)
The new number of cache nodes for the cache cluster.
-
-
-
Method Detail
-
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)
orwithCacheNodeIdsToRemove(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PendingModifiedValues clone()
-
-