public class RebootCacheClusterRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
RebootCacheCluster operation
.
The RebootCacheCluster action reboots some, or all, of the cache nodes within a provisioned cache cluster. This API will apply any modified cache parameter groups to the cache cluster. The reboot action takes place as soon as possible, and results in a momentary outage to the cache cluster. During the reboot, the cache cluster status is set to REBOOTING.
The reboot causes the contents of the cache (for each cache node being rebooted) to be lost.
When the reboot is complete, a cache cluster event is created.
NOOP
Constructor and Description |
---|
RebootCacheClusterRequest()
Default constructor for a new RebootCacheClusterRequest object.
|
RebootCacheClusterRequest(String cacheClusterId,
List<String> cacheNodeIdsToReboot)
Constructs a new RebootCacheClusterRequest object.
|
Modifier and Type | Method and Description |
---|---|
RebootCacheClusterRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getCacheClusterId()
The cache cluster identifier.
|
List<String> |
getCacheNodeIdsToReboot()
A list of cache node IDs to reboot.
|
int |
hashCode() |
void |
setCacheClusterId(String cacheClusterId)
The cache cluster identifier.
|
void |
setCacheNodeIdsToReboot(Collection<String> cacheNodeIdsToReboot)
A list of cache node IDs to reboot.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RebootCacheClusterRequest |
withCacheClusterId(String cacheClusterId)
The cache cluster identifier.
|
RebootCacheClusterRequest |
withCacheNodeIdsToReboot(Collection<String> cacheNodeIdsToReboot)
A list of cache node IDs to reboot.
|
RebootCacheClusterRequest |
withCacheNodeIdsToReboot(String... cacheNodeIdsToReboot)
A list of cache node IDs to reboot.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public RebootCacheClusterRequest()
public RebootCacheClusterRequest(String cacheClusterId, List<String> cacheNodeIdsToReboot)
cacheClusterId
- The cache cluster identifier. This parameter is
stored as a lowercase string.cacheNodeIdsToReboot
- A list of cache node IDs to reboot. A node
ID is a numeric identifier (0001, 0002, etc.). To reboot an entire
cache cluster, specify all of the cache node IDs.public String getCacheClusterId()
public void setCacheClusterId(String cacheClusterId)
cacheClusterId
- The cache cluster identifier. This parameter is stored as a lowercase
string.public RebootCacheClusterRequest withCacheClusterId(String cacheClusterId)
Returns a reference to this object so that method calls can be chained together.
cacheClusterId
- The cache cluster identifier. This parameter is stored as a lowercase
string.public List<String> getCacheNodeIdsToReboot()
public void setCacheNodeIdsToReboot(Collection<String> cacheNodeIdsToReboot)
cacheNodeIdsToReboot
- A list of cache node IDs to reboot. A node ID is a numeric identifier
(0001, 0002, etc.). To reboot an entire cache cluster, specify all of
the cache node IDs.public RebootCacheClusterRequest withCacheNodeIdsToReboot(String... cacheNodeIdsToReboot)
NOTE: This method appends the values to the existing list (if
any). Use setCacheNodeIdsToReboot(java.util.Collection)
or
withCacheNodeIdsToReboot(java.util.Collection)
if you want to
override the existing values.
Returns a reference to this object so that method calls can be chained together.
cacheNodeIdsToReboot
- A list of cache node IDs to reboot. A node ID is a numeric identifier
(0001, 0002, etc.). To reboot an entire cache cluster, specify all of
the cache node IDs.public RebootCacheClusterRequest withCacheNodeIdsToReboot(Collection<String> cacheNodeIdsToReboot)
Returns a reference to this object so that method calls can be chained together.
cacheNodeIdsToReboot
- A list of cache node IDs to reboot. A node ID is a numeric identifier
(0001, 0002, etc.). To reboot an entire cache cluster, specify all of
the cache node IDs.public String toString()
toString
in class Object
Object.toString()
public RebootCacheClusterRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.