Class CfnKeyspace.ReplicationSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cassandra.CfnKeyspace.ReplicationSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKeyspace.ReplicationSpecificationProperty>
- Enclosing interface:
CfnKeyspace.ReplicationSpecificationProperty
@Stability(Stable)
public static final class CfnKeyspace.ReplicationSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKeyspace.ReplicationSpecificationProperty>
A builder for
CfnKeyspace.ReplicationSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.regionList
(List<String> regionList) Sets the value ofCfnKeyspace.ReplicationSpecificationProperty.getRegionList()
replicationStrategy
(String replicationStrategy) Sets the value ofCfnKeyspace.ReplicationSpecificationProperty.getReplicationStrategy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
regionList
@Stability(Stable) public CfnKeyspace.ReplicationSpecificationProperty.Builder regionList(List<String> regionList) Sets the value ofCfnKeyspace.ReplicationSpecificationProperty.getRegionList()
- Parameters:
regionList
- Specifies the AWS Regions that the keyspace is replicated in. You must specify at least two and up to six Regions, including the Region that the keyspace is being created in.- Returns:
this
-
replicationStrategy
@Stability(Stable) public CfnKeyspace.ReplicationSpecificationProperty.Builder replicationStrategy(String replicationStrategy) Sets the value ofCfnKeyspace.ReplicationSpecificationProperty.getReplicationStrategy()
- Parameters:
replicationStrategy
- The options are:.SINGLE_REGION
(optional)MULTI_REGION
If no value is specified, the default is
SINGLE_REGION
. IfMULTI_REGION
is specified,RegionList
is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnKeyspace.ReplicationSpecificationProperty>
- Returns:
- a new instance of
CfnKeyspace.ReplicationSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-