public class PendingModifiedValues
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A group of settings that will be applied to the cache cluster in the future, or that are currently being applied.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
cacheNodeIdsToRemove
A list of cache node IDs that are being removed (or will be removed) from
the cache cluster.
|
private java.lang.String |
cacheNodeType
The cache node type that this cache cluster or replication group will be
scaled to.
|
private java.lang.String |
engineVersion
The new cache engine version that the cache cluster will run.
|
private java.lang.Integer |
numCacheNodes
The new number of cache nodes for the cache cluster.
|
Constructor and Description |
---|
PendingModifiedValues() |
Modifier and Type | Method and Description |
---|---|
PendingModifiedValues |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getCacheNodeIdsToRemove()
A list of cache node IDs that are being removed (or will be removed) from
the cache cluster.
|
java.lang.String |
getCacheNodeType()
The cache node type that this cache cluster or replication group will be
scaled to.
|
java.lang.String |
getEngineVersion()
The new cache engine version that the cache cluster will run.
|
java.lang.Integer |
getNumCacheNodes()
The new number of cache nodes for the cache cluster.
|
int |
hashCode() |
void |
setCacheNodeIdsToRemove(java.util.Collection<java.lang.String> cacheNodeIdsToRemove)
A list of cache node IDs that are being removed (or will be removed) from
the cache cluster.
|
void |
setCacheNodeType(java.lang.String cacheNodeType)
The cache node type that this cache cluster or replication group will be
scaled to.
|
void |
setEngineVersion(java.lang.String engineVersion)
The new cache engine version that the cache cluster will run.
|
void |
setNumCacheNodes(java.lang.Integer numCacheNodes)
The new number of cache nodes for the cache cluster.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PendingModifiedValues |
withCacheNodeIdsToRemove(java.util.Collection<java.lang.String> cacheNodeIdsToRemove)
A list of cache node IDs that are being removed (or will be removed) from
the cache cluster.
|
PendingModifiedValues |
withCacheNodeIdsToRemove(java.lang.String... cacheNodeIdsToRemove)
A list of cache node IDs that are being removed (or will be removed) from
the cache cluster.
|
PendingModifiedValues |
withCacheNodeType(java.lang.String cacheNodeType)
The cache node type that this cache cluster or replication group will be
scaled to.
|
PendingModifiedValues |
withEngineVersion(java.lang.String engineVersion)
The new cache engine version that the cache cluster will run.
|
PendingModifiedValues |
withNumCacheNodes(java.lang.Integer numCacheNodes)
The new number of cache nodes for the cache cluster.
|
private java.lang.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.
private SdkInternalList<java.lang.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.).
private java.lang.String engineVersion
The new cache engine version that the cache cluster will run.
private java.lang.String cacheNodeType
The cache node type that this cache cluster or replication group will be scaled to.
public void setNumCacheNodes(java.lang.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.
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.
public java.lang.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.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
public PendingModifiedValues withNumCacheNodes(java.lang.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.
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.
public java.util.List<java.lang.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.).
public void setCacheNodeIdsToRemove(java.util.Collection<java.lang.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.).
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.).public PendingModifiedValues withCacheNodeIdsToRemove(java.lang.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.
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.).public PendingModifiedValues withCacheNodeIdsToRemove(java.util.Collection<java.lang.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.).
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.).public void setEngineVersion(java.lang.String engineVersion)
The new cache engine version that the cache cluster will run.
engineVersion
- The new cache engine version that the cache cluster will run.public java.lang.String getEngineVersion()
The new cache engine version that the cache cluster will run.
public PendingModifiedValues withEngineVersion(java.lang.String engineVersion)
The new cache engine version that the cache cluster will run.
engineVersion
- The new cache engine version that the cache cluster will run.public void setCacheNodeType(java.lang.String cacheNodeType)
The cache node type that this cache cluster or replication group will be scaled to.
cacheNodeType
- The cache node type that this cache cluster or replication group
will be scaled to.public java.lang.String getCacheNodeType()
The cache node type that this cache cluster or replication group will be scaled to.
public PendingModifiedValues withCacheNodeType(java.lang.String cacheNodeType)
The cache node type that this cache cluster or replication group will be scaled to.
cacheNodeType
- The cache node type that this cache cluster or replication group
will be scaled to.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 PendingModifiedValues clone()
clone
in class java.lang.Object