@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GlobalReplicationGroup extends Object implements Serializable, Cloneable
Consists of a primary cluster that accepts writes and an associated secondary cluster that resides in a different Amazon region. The secondary cluster accepts only reads. The primary cluster automatically replicates updates to the secondary cluster.
The GlobalReplicationGroupIdSuffix represents the name of the Global datastore, which is what you use to associate a secondary cluster.
Constructor and Description |
---|
GlobalReplicationGroup() |
Modifier and Type | Method and Description |
---|---|
GlobalReplicationGroup |
clone() |
boolean |
equals(Object obj) |
String |
getARN()
The ARN (Amazon Resource Name) of the global replication group.
|
Boolean |
getAtRestEncryptionEnabled()
A flag that enables encryption at rest when set to
true . |
Boolean |
getAuthTokenEnabled()
A flag that enables using an
AuthToken (password) when issuing Redis OSS commands. |
String |
getCacheNodeType()
The cache node type of the Global datastore
|
Boolean |
getClusterEnabled()
A flag that indicates whether the Global datastore is cluster enabled.
|
String |
getEngine()
The Elasticache engine.
|
String |
getEngineVersion()
The Elasticache (Redis OSS) engine version.
|
List<GlobalNodeGroup> |
getGlobalNodeGroups()
Indicates the slot configuration and global identifier for each slice group.
|
String |
getGlobalReplicationGroupDescription()
The optional description of the Global datastore
|
String |
getGlobalReplicationGroupId()
The name of the Global datastore
|
List<GlobalReplicationGroupMember> |
getMembers()
The replication groups that comprise the Global datastore.
|
String |
getStatus()
The status of the Global datastore
|
Boolean |
getTransitEncryptionEnabled()
A flag that enables in-transit encryption when set to true.
|
int |
hashCode() |
Boolean |
isAtRestEncryptionEnabled()
A flag that enables encryption at rest when set to
true . |
Boolean |
isAuthTokenEnabled()
A flag that enables using an
AuthToken (password) when issuing Redis OSS commands. |
Boolean |
isClusterEnabled()
A flag that indicates whether the Global datastore is cluster enabled.
|
Boolean |
isTransitEncryptionEnabled()
A flag that enables in-transit encryption when set to true.
|
void |
setARN(String aRN)
The ARN (Amazon Resource Name) of the global replication group.
|
void |
setAtRestEncryptionEnabled(Boolean atRestEncryptionEnabled)
A flag that enables encryption at rest when set to
true . |
void |
setAuthTokenEnabled(Boolean authTokenEnabled)
A flag that enables using an
AuthToken (password) when issuing Redis OSS commands. |
void |
setCacheNodeType(String cacheNodeType)
The cache node type of the Global datastore
|
void |
setClusterEnabled(Boolean clusterEnabled)
A flag that indicates whether the Global datastore is cluster enabled.
|
void |
setEngine(String engine)
The Elasticache engine.
|
void |
setEngineVersion(String engineVersion)
The Elasticache (Redis OSS) engine version.
|
void |
setGlobalNodeGroups(Collection<GlobalNodeGroup> globalNodeGroups)
Indicates the slot configuration and global identifier for each slice group.
|
void |
setGlobalReplicationGroupDescription(String globalReplicationGroupDescription)
The optional description of the Global datastore
|
void |
setGlobalReplicationGroupId(String globalReplicationGroupId)
The name of the Global datastore
|
void |
setMembers(Collection<GlobalReplicationGroupMember> members)
The replication groups that comprise the Global datastore.
|
void |
setStatus(String status)
The status of the Global datastore
|
void |
setTransitEncryptionEnabled(Boolean transitEncryptionEnabled)
A flag that enables in-transit encryption when set to true.
|
String |
toString()
Returns a string representation of this object.
|
GlobalReplicationGroup |
withARN(String aRN)
The ARN (Amazon Resource Name) of the global replication group.
|
GlobalReplicationGroup |
withAtRestEncryptionEnabled(Boolean atRestEncryptionEnabled)
A flag that enables encryption at rest when set to
true . |
GlobalReplicationGroup |
withAuthTokenEnabled(Boolean authTokenEnabled)
A flag that enables using an
AuthToken (password) when issuing Redis OSS commands. |
GlobalReplicationGroup |
withCacheNodeType(String cacheNodeType)
The cache node type of the Global datastore
|
GlobalReplicationGroup |
withClusterEnabled(Boolean clusterEnabled)
A flag that indicates whether the Global datastore is cluster enabled.
|
GlobalReplicationGroup |
withEngine(String engine)
The Elasticache engine.
|
GlobalReplicationGroup |
withEngineVersion(String engineVersion)
The Elasticache (Redis OSS) engine version.
|
GlobalReplicationGroup |
withGlobalNodeGroups(Collection<GlobalNodeGroup> globalNodeGroups)
Indicates the slot configuration and global identifier for each slice group.
|
GlobalReplicationGroup |
withGlobalNodeGroups(GlobalNodeGroup... globalNodeGroups)
Indicates the slot configuration and global identifier for each slice group.
|
GlobalReplicationGroup |
withGlobalReplicationGroupDescription(String globalReplicationGroupDescription)
The optional description of the Global datastore
|
GlobalReplicationGroup |
withGlobalReplicationGroupId(String globalReplicationGroupId)
The name of the Global datastore
|
GlobalReplicationGroup |
withMembers(Collection<GlobalReplicationGroupMember> members)
The replication groups that comprise the Global datastore.
|
GlobalReplicationGroup |
withMembers(GlobalReplicationGroupMember... members)
The replication groups that comprise the Global datastore.
|
GlobalReplicationGroup |
withStatus(String status)
The status of the Global datastore
|
GlobalReplicationGroup |
withTransitEncryptionEnabled(Boolean transitEncryptionEnabled)
A flag that enables in-transit encryption when set to true.
|
public void setGlobalReplicationGroupId(String globalReplicationGroupId)
The name of the Global datastore
globalReplicationGroupId
- The name of the Global datastorepublic String getGlobalReplicationGroupId()
The name of the Global datastore
public GlobalReplicationGroup withGlobalReplicationGroupId(String globalReplicationGroupId)
The name of the Global datastore
globalReplicationGroupId
- The name of the Global datastorepublic void setGlobalReplicationGroupDescription(String globalReplicationGroupDescription)
The optional description of the Global datastore
globalReplicationGroupDescription
- The optional description of the Global datastorepublic String getGlobalReplicationGroupDescription()
The optional description of the Global datastore
public GlobalReplicationGroup withGlobalReplicationGroupDescription(String globalReplicationGroupDescription)
The optional description of the Global datastore
globalReplicationGroupDescription
- The optional description of the Global datastorepublic void setStatus(String status)
The status of the Global datastore
status
- The status of the Global datastorepublic String getStatus()
The status of the Global datastore
public GlobalReplicationGroup withStatus(String status)
The status of the Global datastore
status
- The status of the Global datastorepublic void setCacheNodeType(String cacheNodeType)
The cache node type of the Global datastore
cacheNodeType
- The cache node type of the Global datastorepublic String getCacheNodeType()
The cache node type of the Global datastore
public GlobalReplicationGroup withCacheNodeType(String cacheNodeType)
The cache node type of the Global datastore
cacheNodeType
- The cache node type of the Global datastorepublic void setEngine(String engine)
The Elasticache engine. For Redis OSS only.
engine
- The Elasticache engine. For Redis OSS only.public String getEngine()
The Elasticache engine. For Redis OSS only.
public GlobalReplicationGroup withEngine(String engine)
The Elasticache engine. For Redis OSS only.
engine
- The Elasticache engine. For Redis OSS only.public void setEngineVersion(String engineVersion)
The Elasticache (Redis OSS) engine version.
engineVersion
- The Elasticache (Redis OSS) engine version.public String getEngineVersion()
The Elasticache (Redis OSS) engine version.
public GlobalReplicationGroup withEngineVersion(String engineVersion)
The Elasticache (Redis OSS) engine version.
engineVersion
- The Elasticache (Redis OSS) engine version.public List<GlobalReplicationGroupMember> getMembers()
The replication groups that comprise the Global datastore.
public void setMembers(Collection<GlobalReplicationGroupMember> members)
The replication groups that comprise the Global datastore.
members
- The replication groups that comprise the Global datastore.public GlobalReplicationGroup withMembers(GlobalReplicationGroupMember... members)
The replication groups that comprise the Global datastore.
NOTE: This method appends the values to the existing list (if any). Use
setMembers(java.util.Collection)
or withMembers(java.util.Collection)
if you want to override
the existing values.
members
- The replication groups that comprise the Global datastore.public GlobalReplicationGroup withMembers(Collection<GlobalReplicationGroupMember> members)
The replication groups that comprise the Global datastore.
members
- The replication groups that comprise the Global datastore.public void setClusterEnabled(Boolean clusterEnabled)
A flag that indicates whether the Global datastore is cluster enabled.
clusterEnabled
- A flag that indicates whether the Global datastore is cluster enabled.public Boolean getClusterEnabled()
A flag that indicates whether the Global datastore is cluster enabled.
public GlobalReplicationGroup withClusterEnabled(Boolean clusterEnabled)
A flag that indicates whether the Global datastore is cluster enabled.
clusterEnabled
- A flag that indicates whether the Global datastore is cluster enabled.public Boolean isClusterEnabled()
A flag that indicates whether the Global datastore is cluster enabled.
public List<GlobalNodeGroup> getGlobalNodeGroups()
Indicates the slot configuration and global identifier for each slice group.
public void setGlobalNodeGroups(Collection<GlobalNodeGroup> globalNodeGroups)
Indicates the slot configuration and global identifier for each slice group.
globalNodeGroups
- Indicates the slot configuration and global identifier for each slice group.public GlobalReplicationGroup withGlobalNodeGroups(GlobalNodeGroup... globalNodeGroups)
Indicates the slot configuration and global identifier for each slice group.
NOTE: This method appends the values to the existing list (if any). Use
setGlobalNodeGroups(java.util.Collection)
or withGlobalNodeGroups(java.util.Collection)
if you
want to override the existing values.
globalNodeGroups
- Indicates the slot configuration and global identifier for each slice group.public GlobalReplicationGroup withGlobalNodeGroups(Collection<GlobalNodeGroup> globalNodeGroups)
Indicates the slot configuration and global identifier for each slice group.
globalNodeGroups
- Indicates the slot configuration and global identifier for each slice group.public void setAuthTokenEnabled(Boolean authTokenEnabled)
A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
Default: false
authTokenEnabled
- A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
Default: false
public Boolean getAuthTokenEnabled()
A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
Default: false
AuthToken
(password) when issuing Redis OSS commands.
Default: false
public GlobalReplicationGroup withAuthTokenEnabled(Boolean authTokenEnabled)
A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
Default: false
authTokenEnabled
- A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
Default: false
public Boolean isAuthTokenEnabled()
A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
Default: false
AuthToken
(password) when issuing Redis OSS commands.
Default: false
public void setTransitEncryptionEnabled(Boolean transitEncryptionEnabled)
A flag that enables in-transit encryption when set to true.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
3.2.6
, 4.x
or later.
transitEncryptionEnabled
- A flag that enables in-transit encryption when set to true.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
3.2.6
, 4.x
or later.
public Boolean getTransitEncryptionEnabled()
A flag that enables in-transit encryption when set to true.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
3.2.6
, 4.x
or later.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS
version 3.2.6
, 4.x
or later.
public GlobalReplicationGroup withTransitEncryptionEnabled(Boolean transitEncryptionEnabled)
A flag that enables in-transit encryption when set to true.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
3.2.6
, 4.x
or later.
transitEncryptionEnabled
- A flag that enables in-transit encryption when set to true.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
3.2.6
, 4.x
or later.
public Boolean isTransitEncryptionEnabled()
A flag that enables in-transit encryption when set to true.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
3.2.6
, 4.x
or later.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS
version 3.2.6
, 4.x
or later.
public void setAtRestEncryptionEnabled(Boolean atRestEncryptionEnabled)
A flag that enables encryption at rest when set to true
.
You cannot modify the value of AtRestEncryptionEnabled
after the replication group is created. To
enable encryption at rest on a replication group you must set AtRestEncryptionEnabled
to
true
when you create the replication group.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
3.2.6
, 4.x
or later.
atRestEncryptionEnabled
- A flag that enables encryption at rest when set to true
.
You cannot modify the value of AtRestEncryptionEnabled
after the replication group is
created. To enable encryption at rest on a replication group you must set
AtRestEncryptionEnabled
to true
when you create the replication group.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
3.2.6
, 4.x
or later.
public Boolean getAtRestEncryptionEnabled()
A flag that enables encryption at rest when set to true
.
You cannot modify the value of AtRestEncryptionEnabled
after the replication group is created. To
enable encryption at rest on a replication group you must set AtRestEncryptionEnabled
to
true
when you create the replication group.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
3.2.6
, 4.x
or later.
true
.
You cannot modify the value of AtRestEncryptionEnabled
after the replication group is
created. To enable encryption at rest on a replication group you must set
AtRestEncryptionEnabled
to true
when you create the replication group.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS
version 3.2.6
, 4.x
or later.
public GlobalReplicationGroup withAtRestEncryptionEnabled(Boolean atRestEncryptionEnabled)
A flag that enables encryption at rest when set to true
.
You cannot modify the value of AtRestEncryptionEnabled
after the replication group is created. To
enable encryption at rest on a replication group you must set AtRestEncryptionEnabled
to
true
when you create the replication group.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
3.2.6
, 4.x
or later.
atRestEncryptionEnabled
- A flag that enables encryption at rest when set to true
.
You cannot modify the value of AtRestEncryptionEnabled
after the replication group is
created. To enable encryption at rest on a replication group you must set
AtRestEncryptionEnabled
to true
when you create the replication group.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
3.2.6
, 4.x
or later.
public Boolean isAtRestEncryptionEnabled()
A flag that enables encryption at rest when set to true
.
You cannot modify the value of AtRestEncryptionEnabled
after the replication group is created. To
enable encryption at rest on a replication group you must set AtRestEncryptionEnabled
to
true
when you create the replication group.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
3.2.6
, 4.x
or later.
true
.
You cannot modify the value of AtRestEncryptionEnabled
after the replication group is
created. To enable encryption at rest on a replication group you must set
AtRestEncryptionEnabled
to true
when you create the replication group.
Required: Only available when creating a replication group in an Amazon VPC using Redis OSS
version 3.2.6
, 4.x
or later.
public void setARN(String aRN)
The ARN (Amazon Resource Name) of the global replication group.
aRN
- The ARN (Amazon Resource Name) of the global replication group.public String getARN()
The ARN (Amazon Resource Name) of the global replication group.
public GlobalReplicationGroup withARN(String aRN)
The ARN (Amazon Resource Name) of the global replication group.
aRN
- The ARN (Amazon Resource Name) of the global replication group.public String toString()
toString
in class Object
Object.toString()
public GlobalReplicationGroup clone()