Class CfnGlobalReplicationGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnGlobalReplicationGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalReplicationGroupProps>
- Enclosing interface:
CfnGlobalReplicationGroupProps
@Stability(Stable)
public static final class CfnGlobalReplicationGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalReplicationGroupProps>
A builder for
CfnGlobalReplicationGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautomaticFailoverEnabled
(Boolean automaticFailoverEnabled) Sets the value ofCfnGlobalReplicationGroupProps.getAutomaticFailoverEnabled()
automaticFailoverEnabled
(IResolvable automaticFailoverEnabled) Sets the value ofCfnGlobalReplicationGroupProps.getAutomaticFailoverEnabled()
build()
Builds the configured instance.cacheNodeType
(String cacheNodeType) Sets the value ofCfnGlobalReplicationGroupProps.getCacheNodeType()
cacheParameterGroupName
(String cacheParameterGroupName) Sets the value ofCfnGlobalReplicationGroupProps.getCacheParameterGroupName()
Sets the value ofCfnGlobalReplicationGroupProps.getEngine()
engineVersion
(String engineVersion) Sets the value ofCfnGlobalReplicationGroupProps.getEngineVersion()
globalNodeGroupCount
(Number globalNodeGroupCount) Sets the value ofCfnGlobalReplicationGroupProps.getGlobalNodeGroupCount()
globalReplicationGroupDescription
(String globalReplicationGroupDescription) Sets the value ofCfnGlobalReplicationGroupProps.getGlobalReplicationGroupDescription()
globalReplicationGroupIdSuffix
(String globalReplicationGroupIdSuffix) Sets the value ofCfnGlobalReplicationGroupProps.getGlobalReplicationGroupIdSuffix()
Sets the value ofCfnGlobalReplicationGroupProps.getMembers()
members
(IResolvable members) Sets the value ofCfnGlobalReplicationGroupProps.getMembers()
regionalConfigurations
(List<? extends Object> regionalConfigurations) Sets the value ofCfnGlobalReplicationGroupProps.getRegionalConfigurations()
regionalConfigurations
(IResolvable regionalConfigurations) Sets the value ofCfnGlobalReplicationGroupProps.getRegionalConfigurations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
members
Sets the value ofCfnGlobalReplicationGroupProps.getMembers()
- Parameters:
members
- The replication groups that comprise the Global datastore. This parameter is required.- Returns:
this
-
members
@Stability(Stable) public CfnGlobalReplicationGroupProps.Builder members(List<? extends Object> members) Sets the value ofCfnGlobalReplicationGroupProps.getMembers()
- Parameters:
members
- The replication groups that comprise the Global datastore. This parameter is required.- Returns:
this
-
automaticFailoverEnabled
@Stability(Stable) public CfnGlobalReplicationGroupProps.Builder automaticFailoverEnabled(Boolean automaticFailoverEnabled) Sets the value ofCfnGlobalReplicationGroupProps.getAutomaticFailoverEnabled()
- Parameters:
automaticFailoverEnabled
- Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.AutomaticFailoverEnabled
must be enabled for Valkey or Redis OSS (cluster mode enabled) replication groups.- Returns:
this
-
automaticFailoverEnabled
@Stability(Stable) public CfnGlobalReplicationGroupProps.Builder automaticFailoverEnabled(IResolvable automaticFailoverEnabled) Sets the value ofCfnGlobalReplicationGroupProps.getAutomaticFailoverEnabled()
- Parameters:
automaticFailoverEnabled
- Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.AutomaticFailoverEnabled
must be enabled for Valkey or Redis OSS (cluster mode enabled) replication groups.- Returns:
this
-
cacheNodeType
@Stability(Stable) public CfnGlobalReplicationGroupProps.Builder cacheNodeType(String cacheNodeType) Sets the value ofCfnGlobalReplicationGroupProps.getCacheNodeType()
- Parameters:
cacheNodeType
- The cache node type of the Global datastore.- Returns:
this
-
cacheParameterGroupName
@Stability(Stable) public CfnGlobalReplicationGroupProps.Builder cacheParameterGroupName(String cacheParameterGroupName) Sets the value ofCfnGlobalReplicationGroupProps.getCacheParameterGroupName()
- Parameters:
cacheParameterGroupName
- The name of the cache parameter group to use with the Global datastore. It must be compatible with the major engine version used by the Global datastore.- Returns:
this
-
engine
Sets the value ofCfnGlobalReplicationGroupProps.getEngine()
- Parameters:
engine
- The ElastiCache engine. For Valkey or Redis OSS only.- Returns:
this
-
engineVersion
@Stability(Stable) public CfnGlobalReplicationGroupProps.Builder engineVersion(String engineVersion) Sets the value ofCfnGlobalReplicationGroupProps.getEngineVersion()
- Parameters:
engineVersion
- The Elasticache Valkey or Redis OSS engine version.- Returns:
this
-
globalNodeGroupCount
@Stability(Stable) public CfnGlobalReplicationGroupProps.Builder globalNodeGroupCount(Number globalNodeGroupCount) Sets the value ofCfnGlobalReplicationGroupProps.getGlobalNodeGroupCount()
- Parameters:
globalNodeGroupCount
- The number of node groups that comprise the Global Datastore.- Returns:
this
-
globalReplicationGroupDescription
@Stability(Stable) public CfnGlobalReplicationGroupProps.Builder globalReplicationGroupDescription(String globalReplicationGroupDescription) Sets the value ofCfnGlobalReplicationGroupProps.getGlobalReplicationGroupDescription()
- Parameters:
globalReplicationGroupDescription
- The optional description of the Global datastore.- Returns:
this
-
globalReplicationGroupIdSuffix
@Stability(Stable) public CfnGlobalReplicationGroupProps.Builder globalReplicationGroupIdSuffix(String globalReplicationGroupIdSuffix) Sets the value ofCfnGlobalReplicationGroupProps.getGlobalReplicationGroupIdSuffix()
- Parameters:
globalReplicationGroupIdSuffix
- The suffix name of a Global Datastore. The suffix guarantees uniqueness of the Global Datastore name across multiple regions.- Returns:
this
-
regionalConfigurations
@Stability(Stable) public CfnGlobalReplicationGroupProps.Builder regionalConfigurations(IResolvable regionalConfigurations) Sets the value ofCfnGlobalReplicationGroupProps.getRegionalConfigurations()
- Parameters:
regionalConfigurations
- The Regions that comprise the Global Datastore.- Returns:
this
-
regionalConfigurations
@Stability(Stable) public CfnGlobalReplicationGroupProps.Builder regionalConfigurations(List<? extends Object> regionalConfigurations) Sets the value ofCfnGlobalReplicationGroupProps.getRegionalConfigurations()
- Parameters:
regionalConfigurations
- The Regions that comprise the Global Datastore.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGlobalReplicationGroupProps>
- Returns:
- a new instance of
CfnGlobalReplicationGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-