Class ReplicationGroup
- java.lang.Object
-
- com.amazonaws.services.elasticache.model.ReplicationGroup
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ReplicationGroup extends Object implements Serializable, Cloneable
Contains all of the attributes of a specific replication group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReplicationGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicationGroup
clone()
boolean
equals(Object obj)
String
getAutomaticFailover()
Indicates the status of Multi-AZ for this replication 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.String
getSnapshottingClusterId()
The cache cluster ID that is used as the daily snapshot source for the replication group.String
getStatus()
The current state of this replication group - creating, available, etc.int
hashCode()
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
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
setSnapshottingClusterId(String snapshottingClusterId)
The cache cluster ID that is used as the daily snapshot source for the replication group.void
setStatus(String status)
The current state of this replication group - creating, available, etc.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
withDescription(String description)
The description of the replication group.ReplicationGroup
withMemberClusters(String... memberClusters)
The names of all the cache clusters that are part of this replication group.ReplicationGroup
withMemberClusters(Collection<String> memberClusters)
The names of all the cache clusters that are part of this replication group.ReplicationGroup
withNodeGroups(NodeGroup... nodeGroups)
A single element list with information about the nodes in the replication group.ReplicationGroup
withNodeGroups(Collection<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
withSnapshottingClusterId(String snapshottingClusterId)
The cache cluster ID that is used as the daily snapshot source for the replication group.ReplicationGroup
withStatus(String status)
The current state of this replication group - creating, available, etc.
-
-
-
Method Detail
-
setReplicationGroupId
public void setReplicationGroupId(String replicationGroupId)
The identifier for the replication group.
- Parameters:
replicationGroupId
- The identifier for the replication group.
-
getReplicationGroupId
public String getReplicationGroupId()
The identifier for the replication group.
- Returns:
- The identifier for the replication group.
-
withReplicationGroupId
public ReplicationGroup withReplicationGroupId(String replicationGroupId)
The identifier for the replication group.
- Parameters:
replicationGroupId
- The identifier for the replication group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
The description of the replication group.
- Parameters:
description
- The description of the replication group.
-
getDescription
public String getDescription()
The description of the replication group.
- Returns:
- The description of the replication group.
-
withDescription
public ReplicationGroup withDescription(String description)
The description of the replication group.
- Parameters:
description
- The description of the replication group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The current state of this replication group - creating, available, etc.
- Parameters:
status
- The current state of this replication group - creating, available, etc.
-
getStatus
public String getStatus()
The current state of this replication group - creating, available, etc.
- Returns:
- The current state of this replication group - creating, available, etc.
-
withStatus
public ReplicationGroup withStatus(String status)
The current state of this replication group - creating, available, etc.
- Parameters:
status
- The current state of this replication group - creating, available, etc.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPendingModifiedValues
public void setPendingModifiedValues(ReplicationGroupPendingModifiedValues pendingModifiedValues)
A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
- Parameters:
pendingModifiedValues
- A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
-
getPendingModifiedValues
public ReplicationGroupPendingModifiedValues getPendingModifiedValues()
A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
- Returns:
- A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
-
withPendingModifiedValues
public ReplicationGroup withPendingModifiedValues(ReplicationGroupPendingModifiedValues pendingModifiedValues)
A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
- Parameters:
pendingModifiedValues
- A group of settings to be applied to the replication group, either immediately or during the next maintenance window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getMemberClusters
public List<String> getMemberClusters()
The names of all the cache clusters that are part of this replication group.
- Returns:
- The names of all the cache clusters that are part of this replication group.
-
setMemberClusters
public void setMemberClusters(Collection<String> memberClusters)
The names of all the cache clusters that are part of this replication group.
- Parameters:
memberClusters
- The names of all the cache clusters that are part of this replication group.
-
withMemberClusters
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)
orwithMemberClusters(java.util.Collection)
if you want to override the existing values.- Parameters:
memberClusters
- The names of all the cache clusters that are part of this replication group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withMemberClusters
public ReplicationGroup withMemberClusters(Collection<String> memberClusters)
The names of all the cache clusters that are part of this replication group.
- Parameters:
memberClusters
- The names of all the cache clusters that are part of this replication group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getNodeGroups
public List<NodeGroup> getNodeGroups()
A single element list with information about the nodes in the replication group.
- Returns:
- A single element list with information about the nodes in the replication group.
-
setNodeGroups
public void setNodeGroups(Collection<NodeGroup> nodeGroups)
A single element list with information about the nodes in the replication group.
- Parameters:
nodeGroups
- A single element list with information about the nodes in the replication group.
-
withNodeGroups
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)
orwithNodeGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
nodeGroups
- A single element list with information about the nodes in the replication group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withNodeGroups
public ReplicationGroup withNodeGroups(Collection<NodeGroup> nodeGroups)
A single element list with information about the nodes in the replication group.
- Parameters:
nodeGroups
- A single element list with information about the nodes in the replication group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSnapshottingClusterId
public void setSnapshottingClusterId(String snapshottingClusterId)
The cache cluster ID that is used as the daily snapshot source for the replication group.
- Parameters:
snapshottingClusterId
- The cache cluster ID that is used as the daily snapshot source for the replication group.
-
getSnapshottingClusterId
public String getSnapshottingClusterId()
The cache cluster ID that is used as the daily snapshot source for the replication group.
- Returns:
- The cache cluster ID that is used as the daily snapshot source for the replication group.
-
withSnapshottingClusterId
public ReplicationGroup withSnapshottingClusterId(String snapshottingClusterId)
The cache cluster ID that is used as the daily snapshot source for the replication group.
- Parameters:
snapshottingClusterId
- The cache cluster ID that is used as the daily snapshot source for the replication group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAutomaticFailover
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.
- T1 and T2 cache node types.
- Parameters:
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.
- T1 and T2 cache node types.
- See Also:
AutomaticFailoverStatus
-
getAutomaticFailover
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.
- T1 and T2 cache node types.
- Returns:
- 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.
- T1 and T2 cache node types.
- See Also:
AutomaticFailoverStatus
-
withAutomaticFailover
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.
- T1 and T2 cache node types.
- Parameters:
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.
- T1 and T2 cache node types.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutomaticFailoverStatus
-
setAutomaticFailover
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.
- T1 and T2 cache node types.
- Parameters:
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.
- T1 and T2 cache node types.
- See Also:
AutomaticFailoverStatus
-
withAutomaticFailover
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.
- T1 and T2 cache node types.
- Parameters:
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.
- T1 and T2 cache node types.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutomaticFailoverStatus
-
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 ReplicationGroup clone()
-
-