com.amazonaws.services.elasticache.model
Class RebootCacheClusterRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticache.model.RebootCacheClusterRequest
All Implemented Interfaces:
Serializable

public class RebootCacheClusterRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the RebootCacheCluster operation.

The RebootCacheCluster operation reboots some, or all, of the cache cluster 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 cluster node being rebooted) to be lost.

When the reboot is complete, a cache cluster event is created.

See Also:
AmazonElastiCache.rebootCacheCluster(RebootCacheClusterRequest), Serialized Form

Constructor Summary
RebootCacheClusterRequest()
          Default constructor for a new RebootCacheClusterRequest object.
RebootCacheClusterRequest(String cacheClusterId, List<String> cacheNodeIdsToReboot)
          Constructs a new RebootCacheClusterRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getCacheClusterId()
          The cache cluster identifier.
 List<String> getCacheNodeIdsToReboot()
          A list of cache cluster node IDs to reboot.
 int hashCode()
           
 void setCacheClusterId(String cacheClusterId)
          The cache cluster identifier.
 void setCacheNodeIdsToReboot(Collection<String> cacheNodeIdsToReboot)
          A list of cache cluster 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 cluster node IDs to reboot.
 RebootCacheClusterRequest withCacheNodeIdsToReboot(String... cacheNodeIdsToReboot)
          A list of cache cluster node IDs to reboot.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RebootCacheClusterRequest

public RebootCacheClusterRequest()
Default constructor for a new RebootCacheClusterRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


RebootCacheClusterRequest

public RebootCacheClusterRequest(String cacheClusterId,
                                 List<String> cacheNodeIdsToReboot)
Constructs a new RebootCacheClusterRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
cacheClusterId - The cache cluster identifier. This parameter is stored as a lowercase string.
cacheNodeIdsToReboot - A list of cache cluster 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 cluster node IDs.
Method Detail

getCacheClusterId

public String getCacheClusterId()
The cache cluster identifier. This parameter is stored as a lowercase string.

Returns:
The cache cluster identifier. This parameter is stored as a lowercase string.

setCacheClusterId

public void setCacheClusterId(String cacheClusterId)
The cache cluster identifier. This parameter is stored as a lowercase string.

Parameters:
cacheClusterId - The cache cluster identifier. This parameter is stored as a lowercase string.

withCacheClusterId

public RebootCacheClusterRequest withCacheClusterId(String cacheClusterId)
The cache cluster identifier. This parameter is stored as a lowercase string.

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

Parameters:
cacheClusterId - The cache cluster identifier. This parameter is stored as a lowercase string.
Returns:
A reference to this updated object so that method calls can be chained together.

getCacheNodeIdsToReboot

public List<String> getCacheNodeIdsToReboot()
A list of cache cluster 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 cluster node IDs.

Returns:
A list of cache cluster 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 cluster node IDs.

setCacheNodeIdsToReboot

public void setCacheNodeIdsToReboot(Collection<String> cacheNodeIdsToReboot)
A list of cache cluster 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 cluster node IDs.

Parameters:
cacheNodeIdsToReboot - A list of cache cluster 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 cluster node IDs.

withCacheNodeIdsToReboot

public RebootCacheClusterRequest withCacheNodeIdsToReboot(String... cacheNodeIdsToReboot)
A list of cache cluster 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 cluster node IDs.

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

Parameters:
cacheNodeIdsToReboot - A list of cache cluster 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 cluster node IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

withCacheNodeIdsToReboot

public RebootCacheClusterRequest withCacheNodeIdsToReboot(Collection<String> cacheNodeIdsToReboot)
A list of cache cluster 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 cluster node IDs.

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

Parameters:
cacheNodeIdsToReboot - A list of cache cluster 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 cluster node IDs.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2016. All rights reserved.