Class ReplicationGroup
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ReplicationGroup.Builder,
ReplicationGroup>
Contains all of the attributes of a specific Redis replication group.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
arn()
The ARN (Amazon Resource Name) of the replication group.final Boolean
A flag that enables encryption at-rest when set totrue
.final Boolean
A flag that enables using anAuthToken
(password) when issuing Redis commands.final Instant
The date the auth token was last modifiedfinal AutomaticFailoverStatus
Indicates the status of automatic failover for this Redis replication group.final String
Indicates the status of automatic failover for this Redis replication group.final Boolean
If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign.static ReplicationGroup.Builder
builder()
final String
The name of the compute and memory capacity node type for each node in the replication group.final Boolean
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).final ClusterMode
Enabled or Disabled.final String
Enabled or Disabled.final Endpoint
The configuration endpoint for this replication group.final DataTieringStatus
Enables data tiering.final String
Enables data tiering.final String
The user supplied description of the replication group.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) The name of the Global datastore and role of this replication group in the Global datastore.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the LogDeliveryConfigurations property.final boolean
For responses, this returns true if the service returned a value for the MemberClusters property.final boolean
For responses, this returns true if the service returned a value for the MemberClustersOutpostArns property.final boolean
For responses, this returns true if the service returned a value for the NodeGroups property.final boolean
For responses, this returns true if the service returned a value for the UserGroupIds property.final IpDiscovery
The network type you choose when modifying a cluster, eitheripv4
|ipv6
.final String
The network type you choose when modifying a cluster, eitheripv4
|ipv6
.final String
kmsKeyId()
The ID of the KMS key used to encrypt the disk in the cluster.final List
<LogDeliveryConfiguration> Returns the destination, format and type of the logs.The names of all the cache clusters that are part of this replication group.The outpost ARNs of the replication group's member clusters.final MultiAZStatus
multiAZ()
A flag indicating if you have Multi-AZ enabled to enhance fault tolerance.final String
A flag indicating if you have Multi-AZ enabled to enhance fault tolerance.final NetworkType
Must be eitheripv4
|ipv6
|dual_stack
.final String
Must be eitheripv4
|ipv6
|dual_stack
.A list of node groups in this replication group.A group of settings to be applied to the replication group, either immediately or during the next maintenance window.final Instant
The date and time when the cluster was created.final String
The identifier for the replication group.static Class
<? extends ReplicationGroup.Builder> final Integer
The number of days for which ElastiCache retains automatic cluster snapshots before deleting them.final String
The cluster ID that is used as the daily snapshot source for the replication group.final String
The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).final String
status()
The current state of this replication group -creating
,available
,modifying
,deleting
,create-failed
,snapshotting
.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final Boolean
A flag that enables in-transit encryption when set totrue
.final TransitEncryptionMode
A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.final String
A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.The ID of the user group associated to the replication group.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
replicationGroupId
The identifier for the replication group.
- Returns:
- The identifier for the replication group.
-
description
The user supplied description of the replication group.
- Returns:
- The user supplied description of the replication group.
-
globalReplicationGroupInfo
The name of the Global datastore and role of this replication group in the Global datastore.
- Returns:
- The name of the Global datastore and role of this replication group in the Global datastore.
-
status
The current state of this replication group -
creating
,available
,modifying
,deleting
,create-failed
,snapshotting
.- Returns:
- The current state of this replication group -
creating
,available
,modifying
,deleting
,create-failed
,snapshotting
.
-
pendingModifiedValues
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.
-
hasMemberClusters
public final boolean hasMemberClusters()For responses, this returns true if the service returned a value for the MemberClusters property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
memberClusters
The names of all the cache clusters that are part of this replication group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasMemberClusters()
method.- Returns:
- The names of all the cache clusters that are part of this replication group.
-
hasNodeGroups
public final boolean hasNodeGroups()For responses, this returns true if the service returned a value for the NodeGroups property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
nodeGroups
A list of node groups in this replication group. For Redis (cluster mode disabled) replication groups, this is a single-element list. For Redis (cluster mode enabled) replication groups, the list contains an entry for each node group (shard).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasNodeGroups()
method.- Returns:
- A list of node groups in this replication group. For Redis (cluster mode disabled) replication groups, this is a single-element list. For Redis (cluster mode enabled) replication groups, the list contains an entry for each node group (shard).
-
snapshottingClusterId
The cluster ID that is used as the daily snapshot source for the replication group.
- Returns:
- The cluster ID that is used as the daily snapshot source for the replication group.
-
automaticFailover
Indicates the status of automatic failover for this Redis replication group.
If the service returns an enum value that is not available in the current SDK version,
automaticFailover
will returnAutomaticFailoverStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromautomaticFailoverAsString()
.- Returns:
- Indicates the status of automatic failover for this Redis replication group.
- See Also:
-
automaticFailoverAsString
Indicates the status of automatic failover for this Redis replication group.
If the service returns an enum value that is not available in the current SDK version,
automaticFailover
will returnAutomaticFailoverStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromautomaticFailoverAsString()
.- Returns:
- Indicates the status of automatic failover for this Redis replication group.
- See Also:
-
multiAZ
A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ
If the service returns an enum value that is not available in the current SDK version,
multiAZ
will returnMultiAZStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommultiAZAsString()
.- Returns:
- A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ
- See Also:
-
multiAZAsString
A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ
If the service returns an enum value that is not available in the current SDK version,
multiAZ
will returnMultiAZStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommultiAZAsString()
.- Returns:
- A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ
- See Also:
-
configurationEndpoint
The configuration endpoint for this replication group. Use the configuration endpoint to connect to this replication group.
- Returns:
- The configuration endpoint for this replication group. Use the configuration endpoint to connect to this replication group.
-
snapshotRetentionLimit
The number of days for which ElastiCache retains automatic 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.- Returns:
- The number of days for which ElastiCache retains automatic 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.
-
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.
This parameter is only valid if the
Engine
parameter isredis
.- Returns:
- 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.
This parameter is only valid if the
Engine
parameter isredis
.
-
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
- Returns:
- 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
-
cacheNodeType
The name of the compute and memory capacity node type for each node in the replication group.
- Returns:
- The name of the compute and memory capacity node type for each node in the replication group.
-
authTokenEnabled
A flag that enables using an
AuthToken
(password) when issuing Redis commands.Default:
false
- Returns:
- A flag that enables using an
AuthToken
(password) when issuing Redis commands.Default:
false
-
authTokenLastModifiedDate
The date the auth token was last modified
- Returns:
- The date the auth token was last modified
-
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 version
3.2.6
,4.x
or later.Default:
false
- Returns:
- 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 version
3.2.6
,4.x
or later.Default:
false
-
atRestEncryptionEnabled
A flag that enables encryption at-rest when set to
true
.You cannot modify the value of
AtRestEncryptionEnabled
after the cluster is created. To enable encryption at-rest on a cluster you must setAtRestEncryptionEnabled
totrue
when you create a cluster.Required: Only available when creating a replication group in an Amazon VPC using redis version
3.2.6
,4.x
or later.Default:
false
- Returns:
- A flag that enables encryption at-rest when set to
true
.You cannot modify the value of
AtRestEncryptionEnabled
after the cluster is created. To enable encryption at-rest on a cluster you must setAtRestEncryptionEnabled
totrue
when you create a cluster.Required: Only available when creating a replication group in an Amazon VPC using redis version
3.2.6
,4.x
or later.Default:
false
-
hasMemberClustersOutpostArns
public final boolean hasMemberClustersOutpostArns()For responses, this returns true if the service returned a value for the MemberClustersOutpostArns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
memberClustersOutpostArns
The outpost ARNs of the replication group's member clusters.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasMemberClustersOutpostArns()
method.- Returns:
- The outpost ARNs of the replication group's member clusters.
-
kmsKeyId
The ID of the KMS key used to encrypt the disk in the cluster.
- Returns:
- The ID of the KMS key used to encrypt the disk in the cluster.
-
arn
The ARN (Amazon Resource Name) of the replication group.
- Returns:
- The ARN (Amazon Resource Name) of the replication group.
-
hasUserGroupIds
public final boolean hasUserGroupIds()For responses, this returns true if the service returned a value for the UserGroupIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
userGroupIds
The ID of the user group associated to the replication group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasUserGroupIds()
method.- Returns:
- The ID of the user group associated to the replication group.
-
hasLogDeliveryConfigurations
public final boolean hasLogDeliveryConfigurations()For responses, this returns true if the service returned a value for the LogDeliveryConfigurations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
logDeliveryConfigurations
Returns the destination, format and type of the logs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasLogDeliveryConfigurations()
method.- Returns:
- Returns the destination, format and type of the logs.
-
replicationGroupCreateTime
The date and time when the cluster was created.
- Returns:
- The date and time when the cluster was created.
-
dataTiering
Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering.
If the service returns an enum value that is not available in the current SDK version,
dataTiering
will returnDataTieringStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromdataTieringAsString()
.- Returns:
- Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering.
- See Also:
-
dataTieringAsString
Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering.
If the service returns an enum value that is not available in the current SDK version,
dataTiering
will returnDataTieringStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromdataTieringAsString()
.- Returns:
- Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering.
- See Also:
-
autoMinorVersionUpgrade
If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
- Returns:
- If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
-
networkType
Must be either
ipv4
|ipv6
|dual_stack
. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.If the service returns an enum value that is not available in the current SDK version,
networkType
will returnNetworkType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromnetworkTypeAsString()
.- Returns:
- Must be either
ipv4
|ipv6
|dual_stack
. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system. - See Also:
-
networkTypeAsString
Must be either
ipv4
|ipv6
|dual_stack
. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.If the service returns an enum value that is not available in the current SDK version,
networkType
will returnNetworkType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromnetworkTypeAsString()
.- Returns:
- Must be either
ipv4
|ipv6
|dual_stack
. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system. - See Also:
-
ipDiscovery
The network type you choose when modifying a cluster, either
ipv4
|ipv6
. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.If the service returns an enum value that is not available in the current SDK version,
ipDiscovery
will returnIpDiscovery.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromipDiscoveryAsString()
.- Returns:
- The network type you choose when modifying a cluster, either
ipv4
|ipv6
. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system. - See Also:
-
ipDiscoveryAsString
The network type you choose when modifying a cluster, either
ipv4
|ipv6
. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.If the service returns an enum value that is not available in the current SDK version,
ipDiscovery
will returnIpDiscovery.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromipDiscoveryAsString()
.- Returns:
- The network type you choose when modifying a cluster, either
ipv4
|ipv6
. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system. - See Also:
-
transitEncryptionMode
A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
If the service returns an enum value that is not available in the current SDK version,
transitEncryptionMode
will returnTransitEncryptionMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtransitEncryptionModeAsString()
.- Returns:
- A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
- See Also:
-
transitEncryptionModeAsString
A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
If the service returns an enum value that is not available in the current SDK version,
transitEncryptionMode
will returnTransitEncryptionMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtransitEncryptionModeAsString()
.- Returns:
- A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
- See Also:
-
clusterMode
Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.
If the service returns an enum value that is not available in the current SDK version,
clusterMode
will returnClusterMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromclusterModeAsString()
.- Returns:
- Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.
- See Also:
-
clusterModeAsString
Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.
If the service returns an enum value that is not available in the current SDK version,
clusterMode
will returnClusterMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromclusterModeAsString()
.- Returns:
- Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ReplicationGroup.Builder,
ReplicationGroup> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-