@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReplicationGroup extends Object implements Serializable, Cloneable
Contains all of the attributes of a specific Redis replication group.
Constructor and Description |
---|
ReplicationGroup() |
Modifier and Type | Method and Description |
---|---|
ReplicationGroup |
clone() |
boolean |
equals(Object obj) |
String |
getAutomaticFailover()
Indicates the status of Multi-AZ for this replication group.
|
String |
getCacheNodeType()
The name of the compute and memory capacity node type for each node in the replication group.
|
Boolean |
getClusterEnabled()
A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be
partitioned across multiple shards (API/CLI: node groups).
|
Endpoint |
getConfigurationEndpoint()
The configuration endpoint for this replicaiton group.
|
String |
getDescription()
The description of the replication group.
|
List<String> |
getMemberClusters()
The names of all the cache clusters that are part of this replication group.
|
List<NodeGroup> |
getNodeGroups()
A single element list with information about the nodes in the replication group.
|
ReplicationGroupPendingModifiedValues |
getPendingModifiedValues()
A group of settings to be applied to the replication group, either immediately or during the next maintenance
window.
|
String |
getReplicationGroupId()
The identifier for the replication group.
|
Integer |
getSnapshotRetentionLimit()
The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
|
String |
getSnapshottingClusterId()
The cache cluster ID that is used as the daily snapshot source for the replication group.
|
String |
getSnapshotWindow()
The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
|
String |
getStatus()
The current state of this replication group -
creating , available ,
modifying , deleting , create-failed , snapshotting . |
int |
hashCode() |
Boolean |
isClusterEnabled()
A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be
partitioned across multiple shards (API/CLI: node groups).
|
void |
setAutomaticFailover(AutomaticFailoverStatus automaticFailover)
Indicates the status of Multi-AZ for this replication group.
|
void |
setAutomaticFailover(String automaticFailover)
Indicates the status of Multi-AZ for this replication group.
|
void |
setCacheNodeType(String cacheNodeType)
The name of the compute and memory capacity node type for each node in the replication group.
|
void |
setClusterEnabled(Boolean clusterEnabled)
A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be
partitioned across multiple shards (API/CLI: node groups).
|
void |
setConfigurationEndpoint(Endpoint configurationEndpoint)
The configuration endpoint for this replicaiton group.
|
void |
setDescription(String description)
The description of the replication group.
|
void |
setMemberClusters(Collection<String> memberClusters)
The names of all the cache clusters that are part of this replication group.
|
void |
setNodeGroups(Collection<NodeGroup> nodeGroups)
A single element list with information about the nodes in the replication group.
|
void |
setPendingModifiedValues(ReplicationGroupPendingModifiedValues pendingModifiedValues)
A group of settings to be applied to the replication group, either immediately or during the next maintenance
window.
|
void |
setReplicationGroupId(String replicationGroupId)
The identifier for the replication group.
|
void |
setSnapshotRetentionLimit(Integer snapshotRetentionLimit)
The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
|
void |
setSnapshottingClusterId(String snapshottingClusterId)
The cache cluster ID that is used as the daily snapshot source for the replication group.
|
void |
setSnapshotWindow(String snapshotWindow)
The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
|
void |
setStatus(String status)
The current state of this replication group -
creating , available ,
modifying , deleting , create-failed , snapshotting . |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ReplicationGroup |
withAutomaticFailover(AutomaticFailoverStatus automaticFailover)
Indicates the status of Multi-AZ for this replication group.
|
ReplicationGroup |
withAutomaticFailover(String automaticFailover)
Indicates the status of Multi-AZ for this replication group.
|
ReplicationGroup |
withCacheNodeType(String cacheNodeType)
The name of the compute and memory capacity node type for each node in the replication group.
|
ReplicationGroup |
withClusterEnabled(Boolean clusterEnabled)
A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be
partitioned across multiple shards (API/CLI: node groups).
|
ReplicationGroup |
withConfigurationEndpoint(Endpoint configurationEndpoint)
The configuration endpoint for this replicaiton group.
|
ReplicationGroup |
withDescription(String description)
The description of the replication group.
|
ReplicationGroup |
withMemberClusters(Collection<String> memberClusters)
The names of all the cache clusters that are part of this replication group.
|
ReplicationGroup |
withMemberClusters(String... memberClusters)
The names of all the cache clusters that are part of this replication group.
|
ReplicationGroup |
withNodeGroups(Collection<NodeGroup> nodeGroups)
A single element list with information about the nodes in the replication group.
|
ReplicationGroup |
withNodeGroups(NodeGroup... nodeGroups)
A single element list with information about the nodes in the replication group.
|
ReplicationGroup |
withPendingModifiedValues(ReplicationGroupPendingModifiedValues pendingModifiedValues)
A group of settings to be applied to the replication group, either immediately or during the next maintenance
window.
|
ReplicationGroup |
withReplicationGroupId(String replicationGroupId)
The identifier for the replication group.
|
ReplicationGroup |
withSnapshotRetentionLimit(Integer snapshotRetentionLimit)
The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
|
ReplicationGroup |
withSnapshottingClusterId(String snapshottingClusterId)
The cache cluster ID that is used as the daily snapshot source for the replication group.
|
ReplicationGroup |
withSnapshotWindow(String snapshotWindow)
The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
|
ReplicationGroup |
withStatus(String status)
The current state of this replication group -
creating , available ,
modifying , deleting , create-failed , snapshotting . |
public void setReplicationGroupId(String replicationGroupId)
The identifier for the replication group.
replicationGroupId
- The identifier for the replication group.public String getReplicationGroupId()
The identifier for the replication group.
public ReplicationGroup withReplicationGroupId(String replicationGroupId)
The identifier for the replication group.
replicationGroupId
- The identifier for the replication group.public void setDescription(String description)
The description of the replication group.
description
- The description of the replication group.public String getDescription()
The description of the replication group.
public ReplicationGroup withDescription(String description)
The description of the replication group.
description
- The description of the replication group.public void setStatus(String status)
The current state of this replication group - creating
, available
,
modifying
, deleting
, create-failed
, snapshotting
.
status
- The current state of this replication group - creating
, available
,
modifying
, deleting
, create-failed
, snapshotting
.public String getStatus()
The current state of this replication group - creating
, available
,
modifying
, deleting
, create-failed
, snapshotting
.
creating
, available
,
modifying
, deleting
, create-failed
, snapshotting
.public ReplicationGroup withStatus(String status)
The current state of this replication group - creating
, available
,
modifying
, deleting
, create-failed
, snapshotting
.
status
- The current state of this replication group - creating
, available
,
modifying
, deleting
, create-failed
, snapshotting
.public void setPendingModifiedValues(ReplicationGroupPendingModifiedValues pendingModifiedValues)
A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
pendingModifiedValues
- A group of settings to be applied to the replication group, either immediately or during the next
maintenance window.public ReplicationGroupPendingModifiedValues getPendingModifiedValues()
A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
public ReplicationGroup withPendingModifiedValues(ReplicationGroupPendingModifiedValues pendingModifiedValues)
A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
pendingModifiedValues
- A group of settings to be applied to the replication group, either immediately or during the next
maintenance window.public List<String> getMemberClusters()
The names of all the cache clusters that are part of this replication group.
public void setMemberClusters(Collection<String> memberClusters)
The names of all the cache clusters that are part of this replication group.
memberClusters
- The names of all the cache clusters that are part of this replication group.public ReplicationGroup withMemberClusters(String... memberClusters)
The names of all the cache clusters that are part of this replication group.
NOTE: This method appends the values to the existing list (if any). Use
setMemberClusters(java.util.Collection)
or withMemberClusters(java.util.Collection)
if you want
to override the existing values.
memberClusters
- The names of all the cache clusters that are part of this replication group.public ReplicationGroup withMemberClusters(Collection<String> memberClusters)
The names of all the cache clusters that are part of this replication group.
memberClusters
- The names of all the cache clusters that are part of this replication group.public List<NodeGroup> getNodeGroups()
A single element list with information about the nodes in the replication group.
public void setNodeGroups(Collection<NodeGroup> nodeGroups)
A single element list with information about the nodes in the replication group.
nodeGroups
- A single element list with information about the nodes in the replication group.public ReplicationGroup withNodeGroups(NodeGroup... nodeGroups)
A single element list with information about the nodes in the replication group.
NOTE: This method appends the values to the existing list (if any). Use
setNodeGroups(java.util.Collection)
or withNodeGroups(java.util.Collection)
if you want to
override the existing values.
nodeGroups
- A single element list with information about the nodes in the replication group.public ReplicationGroup withNodeGroups(Collection<NodeGroup> nodeGroups)
A single element list with information about the nodes in the replication group.
nodeGroups
- A single element list with information about the nodes in the replication group.public void setSnapshottingClusterId(String snapshottingClusterId)
The cache cluster ID that is used as the daily snapshot source for the replication group.
snapshottingClusterId
- The cache cluster ID that is used as the daily snapshot source for the replication group.public String getSnapshottingClusterId()
The cache cluster ID that is used as the daily snapshot source for the replication group.
public ReplicationGroup withSnapshottingClusterId(String snapshottingClusterId)
The cache cluster ID that is used as the daily snapshot source for the replication group.
snapshottingClusterId
- The cache cluster ID that is used as the daily snapshot source for the replication group.public void setAutomaticFailover(String automaticFailover)
Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
Redis versions earlier than 2.8.6.
Redis (cluster mode disabled):T1 and T2 cache node types.
Redis (cluster mode enabled): T1 node types.
automaticFailover
- Indicates the status of Multi-AZ for this replication group. ElastiCache Multi-AZ replication groups are not supported on:
Redis versions earlier than 2.8.6.
Redis (cluster mode disabled):T1 and T2 cache node types.
Redis (cluster mode enabled): T1 node types.
AutomaticFailoverStatus
public String getAutomaticFailover()
Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
Redis versions earlier than 2.8.6.
Redis (cluster mode disabled):T1 and T2 cache node types.
Redis (cluster mode enabled): T1 node types.
ElastiCache Multi-AZ replication groups are not supported on:
Redis versions earlier than 2.8.6.
Redis (cluster mode disabled):T1 and T2 cache node types.
Redis (cluster mode enabled): T1 node types.
AutomaticFailoverStatus
public ReplicationGroup withAutomaticFailover(String automaticFailover)
Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
Redis versions earlier than 2.8.6.
Redis (cluster mode disabled):T1 and T2 cache node types.
Redis (cluster mode enabled): T1 node types.
automaticFailover
- Indicates the status of Multi-AZ for this replication group. ElastiCache Multi-AZ replication groups are not supported on:
Redis versions earlier than 2.8.6.
Redis (cluster mode disabled):T1 and T2 cache node types.
Redis (cluster mode enabled): T1 node types.
AutomaticFailoverStatus
public void setAutomaticFailover(AutomaticFailoverStatus automaticFailover)
Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
Redis versions earlier than 2.8.6.
Redis (cluster mode disabled):T1 and T2 cache node types.
Redis (cluster mode enabled): T1 node types.
automaticFailover
- Indicates the status of Multi-AZ for this replication group. ElastiCache Multi-AZ replication groups are not supported on:
Redis versions earlier than 2.8.6.
Redis (cluster mode disabled):T1 and T2 cache node types.
Redis (cluster mode enabled): T1 node types.
AutomaticFailoverStatus
public ReplicationGroup withAutomaticFailover(AutomaticFailoverStatus automaticFailover)
Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
Redis versions earlier than 2.8.6.
Redis (cluster mode disabled):T1 and T2 cache node types.
Redis (cluster mode enabled): T1 node types.
automaticFailover
- Indicates the status of Multi-AZ for this replication group. ElastiCache Multi-AZ replication groups are not supported on:
Redis versions earlier than 2.8.6.
Redis (cluster mode disabled):T1 and T2 cache node types.
Redis (cluster mode enabled): T1 node types.
AutomaticFailoverStatus
public void setConfigurationEndpoint(Endpoint configurationEndpoint)
The configuration endpoint for this replicaiton group. Use the configuration endpoint to connect to this replication group.
configurationEndpoint
- The configuration endpoint for this replicaiton group. Use the configuration endpoint to connect to this
replication group.public Endpoint getConfigurationEndpoint()
The configuration endpoint for this replicaiton group. Use the configuration endpoint to connect to this replication group.
public ReplicationGroup withConfigurationEndpoint(Endpoint configurationEndpoint)
The configuration endpoint for this replicaiton group. Use the configuration endpoint to connect to this replication group.
configurationEndpoint
- The configuration endpoint for this replicaiton group. Use the configuration endpoint to connect to this
replication group.public void setSnapshotRetentionLimit(Integer snapshotRetentionLimit)
The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them. For
example, if you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5
days before being deleted.
If the value of SnapshotRetentionLimit
is set to zero (0), backups are turned off.
snapshotRetentionLimit
- The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
For example, if you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is
retained for 5 days before being deleted.
If the value of SnapshotRetentionLimit
is set to zero (0), backups are turned off.
public Integer getSnapshotRetentionLimit()
The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them. For
example, if you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5
days before being deleted.
If the value of SnapshotRetentionLimit
is set to zero (0), backups are turned off.
SnapshotRetentionLimit
to 5, a snapshot that was taken today is
retained for 5 days before being deleted.
If the value of SnapshotRetentionLimit
is set to zero (0), backups are turned off.
public ReplicationGroup withSnapshotRetentionLimit(Integer snapshotRetentionLimit)
The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them. For
example, if you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5
days before being deleted.
If the value of SnapshotRetentionLimit
is set to zero (0), backups are turned off.
snapshotRetentionLimit
- The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
For example, if you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is
retained for 5 days before being deleted.
If the value of SnapshotRetentionLimit
is set to zero (0), backups are turned off.
public void setSnapshotWindow(String snapshotWindow)
The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
Example: 05:00-09:00
If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
Note: This parameter is only valid if the Engine
parameter is redis
.
snapshotWindow
- The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group
(shard).
Example: 05:00-09:00
If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
Note: This parameter is only valid if the Engine
parameter is redis
.
public String getSnapshotWindow()
The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
Example: 05:00-09:00
If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
Note: This parameter is only valid if the Engine
parameter is redis
.
Example: 05:00-09:00
If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
Note: This parameter is only valid if the Engine
parameter is redis
.
public ReplicationGroup withSnapshotWindow(String snapshotWindow)
The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
Example: 05:00-09:00
If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
Note: This parameter is only valid if the Engine
parameter is redis
.
snapshotWindow
- The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group
(shard).
Example: 05:00-09:00
If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
Note: This parameter is only valid if the Engine
parameter is redis
.
public void setClusterEnabled(Boolean clusterEnabled)
A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be partitioned across multiple shards (API/CLI: node groups).
Valid values: true
| false
clusterEnabled
- A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be
partitioned across multiple shards (API/CLI: node groups).
Valid values: true
| false
public Boolean getClusterEnabled()
A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be partitioned across multiple shards (API/CLI: node groups).
Valid values: true
| false
Valid values: true
| false
public ReplicationGroup withClusterEnabled(Boolean clusterEnabled)
A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be partitioned across multiple shards (API/CLI: node groups).
Valid values: true
| false
clusterEnabled
- A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be
partitioned across multiple shards (API/CLI: node groups).
Valid values: true
| false
public Boolean isClusterEnabled()
A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be partitioned across multiple shards (API/CLI: node groups).
Valid values: true
| false
Valid values: true
| false
public void setCacheNodeType(String cacheNodeType)
The name of the compute and memory capacity node type for each node in the replication group.
cacheNodeType
- The name of the compute and memory capacity node type for each node in the replication group.public String getCacheNodeType()
The name of the compute and memory capacity node type for each node in the replication group.
public ReplicationGroup withCacheNodeType(String cacheNodeType)
The name of the compute and memory capacity node type for each node in the replication group.
cacheNodeType
- The name of the compute and memory capacity node type for each node in the replication group.public String toString()
toString
in class Object
Object.toString()
public ReplicationGroup clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.