Class CfnMultiRegionClusterProps.Builder
java.lang.Object
software.amazon.awscdk.services.memorydb.CfnMultiRegionClusterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMultiRegionClusterProps>
- Enclosing interface:
CfnMultiRegionClusterProps
@Stability(Stable)
public static final class CfnMultiRegionClusterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMultiRegionClusterProps>
A builder for
CfnMultiRegionClusterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnMultiRegionClusterProps.getDescription()Sets the value ofCfnMultiRegionClusterProps.getEngine()engineVersion(String engineVersion) Sets the value ofCfnMultiRegionClusterProps.getEngineVersion()multiRegionClusterNameSuffix(String multiRegionClusterNameSuffix) Sets the value ofCfnMultiRegionClusterProps.getMultiRegionClusterNameSuffix()multiRegionParameterGroupName(String multiRegionParameterGroupName) Sets the value ofCfnMultiRegionClusterProps.getMultiRegionParameterGroupName()Sets the value ofCfnMultiRegionClusterProps.getNodeType()Sets the value ofCfnMultiRegionClusterProps.getNumShards()Sets the value ofCfnMultiRegionClusterProps.getTags()tlsEnabled(Boolean tlsEnabled) Sets the value ofCfnMultiRegionClusterProps.getTlsEnabled()tlsEnabled(IResolvable tlsEnabled) Sets the value ofCfnMultiRegionClusterProps.getTlsEnabled()updateStrategy(String updateStrategy) Sets the value ofCfnMultiRegionClusterProps.getUpdateStrategy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodeType
Sets the value ofCfnMultiRegionClusterProps.getNodeType()- Parameters:
nodeType- The node type used by the multi-Region cluster. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnMultiRegionClusterProps.getDescription()- Parameters:
description- The description of the multi-Region cluster.- Returns:
this
-
engine
Sets the value ofCfnMultiRegionClusterProps.getEngine()- Parameters:
engine- The name of the engine used by the multi-Region cluster.- Returns:
this
-
engineVersion
Sets the value ofCfnMultiRegionClusterProps.getEngineVersion()- Parameters:
engineVersion- The version of the engine used by the multi-Region cluster.- Returns:
this
-
multiRegionClusterNameSuffix
@Stability(Stable) public CfnMultiRegionClusterProps.Builder multiRegionClusterNameSuffix(String multiRegionClusterNameSuffix) Sets the value ofCfnMultiRegionClusterProps.getMultiRegionClusterNameSuffix()- Parameters:
multiRegionClusterNameSuffix- A suffix to be added to the Multi-Region cluster name. Amazon MemoryDB automatically applies a prefix to the Multi-Region cluster Name when it is created. Each Amazon Region has its own prefix. For instance, a Multi-Region cluster Name created in the US-West-1 region will begin with "virxk", along with the suffix name you provide. The suffix guarantees uniqueness of the Multi-Region cluster name across multiple regions.- Returns:
this
-
multiRegionParameterGroupName
@Stability(Stable) public CfnMultiRegionClusterProps.Builder multiRegionParameterGroupName(String multiRegionParameterGroupName) Sets the value ofCfnMultiRegionClusterProps.getMultiRegionParameterGroupName()- Parameters:
multiRegionParameterGroupName- The name of the multi-Region parameter group associated with the cluster.- Returns:
this
-
numShards
Sets the value ofCfnMultiRegionClusterProps.getNumShards()- Parameters:
numShards- The number of shards in the multi-Region cluster.- Returns:
this
-
tags
Sets the value ofCfnMultiRegionClusterProps.getTags()- Parameters:
tags- A list of tags to be applied to the multi-Region cluster.- Returns:
this
-
tlsEnabled
Sets the value ofCfnMultiRegionClusterProps.getTlsEnabled()- Parameters:
tlsEnabled- Indiciates if the multi-Region cluster is TLS enabled.- Returns:
this
-
tlsEnabled
Sets the value ofCfnMultiRegionClusterProps.getTlsEnabled()- Parameters:
tlsEnabled- Indiciates if the multi-Region cluster is TLS enabled.- Returns:
this
-
updateStrategy
Sets the value ofCfnMultiRegionClusterProps.getUpdateStrategy()- Parameters:
updateStrategy- The strategy to use for the update operation. Supported values are "coordinated" or "uncoordinated".- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMultiRegionClusterProps>- Returns:
- a new instance of
CfnMultiRegionClusterProps - Throws:
NullPointerException- if any required attribute was not provided
-