Class CfnKeyspacePropsMixin.ReplicationSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cassandra.CfnKeyspacePropsMixin.ReplicationSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKeyspacePropsMixin.ReplicationSpecificationProperty>
- Enclosing interface:
CfnKeyspacePropsMixin.ReplicationSpecificationProperty
@Stability(Stable)
public static final class CfnKeyspacePropsMixin.ReplicationSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKeyspacePropsMixin.ReplicationSpecificationProperty>
A builder for
CfnKeyspacePropsMixin.ReplicationSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.regionList(List<String> regionList) Sets the value ofCfnKeyspacePropsMixin.ReplicationSpecificationProperty.getRegionList()replicationStrategy(String replicationStrategy)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
regionList
@Stability(Stable) public CfnKeyspacePropsMixin.ReplicationSpecificationProperty.Builder regionList(List<String> regionList) Sets the value ofCfnKeyspacePropsMixin.ReplicationSpecificationProperty.getRegionList()- Parameters:
regionList- Specifies the AWS Regions that the keyspace is replicated in. You must specify at least two Regions, including the Region that the keyspace is being created in.To specify a Region that's disabled by default , you must first enable the Region. For more information, see Multi-Region replication in AWS Regions disabled by default in the Amazon Keyspaces Developer Guide .
- Returns:
this
-
replicationStrategy
@Stability(Stable) public CfnKeyspacePropsMixin.ReplicationSpecificationProperty.Builder replicationStrategy(String replicationStrategy) - Parameters:
replicationStrategy- The options are:.SINGLE_REGION(optional)MULTI_REGION
If no value is specified, the default is
SINGLE_REGION. IfMULTI_REGIONis specified,RegionListis required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKeyspacePropsMixin.ReplicationSpecificationProperty>- Returns:
- a new instance of
CfnKeyspacePropsMixin.ReplicationSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-