Class CfnKeyspaceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cassandra.CfnKeyspaceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKeyspaceMixinProps>
- Enclosing interface:
CfnKeyspaceMixinProps
@Stability(Stable)
public static final class CfnKeyspaceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKeyspaceMixinProps>
A builder for
CfnKeyspaceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clientSideTimestampsEnabled(Boolean clientSideTimestampsEnabled) Sets the value ofCfnKeyspaceMixinProps.getClientSideTimestampsEnabled()clientSideTimestampsEnabled(IResolvable clientSideTimestampsEnabled) Sets the value ofCfnKeyspaceMixinProps.getClientSideTimestampsEnabled()keyspaceName(String keyspaceName) Sets the value ofCfnKeyspaceMixinProps.getKeyspaceName()replicationSpecification(CfnKeyspacePropsMixin.ReplicationSpecificationProperty replicationSpecification) Sets the value ofCfnKeyspaceMixinProps.getReplicationSpecification()replicationSpecification(IResolvable replicationSpecification) Sets the value ofCfnKeyspaceMixinProps.getReplicationSpecification()Sets the value ofCfnKeyspaceMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientSideTimestampsEnabled
@Stability(Stable) public CfnKeyspaceMixinProps.Builder clientSideTimestampsEnabled(Boolean clientSideTimestampsEnabled) Sets the value ofCfnKeyspaceMixinProps.getClientSideTimestampsEnabled()- Parameters:
clientSideTimestampsEnabled- Indicates whether client-side timestamps are enabled (true) or disabled (false) for all tables in the keyspace. To add a Region to a single-Region keyspace with at least one table, the value must be set to true. After you've enabled client-side timestamps for a table, you can’t disable it again.- Returns:
this
-
clientSideTimestampsEnabled
@Stability(Stable) public CfnKeyspaceMixinProps.Builder clientSideTimestampsEnabled(IResolvable clientSideTimestampsEnabled) Sets the value ofCfnKeyspaceMixinProps.getClientSideTimestampsEnabled()- Parameters:
clientSideTimestampsEnabled- Indicates whether client-side timestamps are enabled (true) or disabled (false) for all tables in the keyspace. To add a Region to a single-Region keyspace with at least one table, the value must be set to true. After you've enabled client-side timestamps for a table, you can’t disable it again.- Returns:
this
-
keyspaceName
Sets the value ofCfnKeyspaceMixinProps.getKeyspaceName()- Parameters:
keyspaceName- The name of the keyspace to be created. The keyspace name is case sensitive. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the keyspace name. For more information, see Name type .Length constraints: Minimum length of 1. Maximum length of 48.
- Returns:
this
-
replicationSpecification
@Stability(Stable) public CfnKeyspaceMixinProps.Builder replicationSpecification(IResolvable replicationSpecification) Sets the value ofCfnKeyspaceMixinProps.getReplicationSpecification()- Parameters:
replicationSpecification- Specifies theReplicationStrategyof a keyspace. The options are:.SINGLE_REGIONfor a single Region keyspace (optional) orMULTI_REGIONfor a multi-Region keyspace
If no
ReplicationStrategyis provided, the default isSINGLE_REGION. If you chooseMULTI_REGION, you must also provide aRegionListwith the AWS Regions that the keyspace is replicated in.- Returns:
this
-
replicationSpecification
@Stability(Stable) public CfnKeyspaceMixinProps.Builder replicationSpecification(CfnKeyspacePropsMixin.ReplicationSpecificationProperty replicationSpecification) Sets the value ofCfnKeyspaceMixinProps.getReplicationSpecification()- Parameters:
replicationSpecification- Specifies theReplicationStrategyof a keyspace. The options are:.SINGLE_REGIONfor a single Region keyspace (optional) orMULTI_REGIONfor a multi-Region keyspace
If no
ReplicationStrategyis provided, the default isSINGLE_REGION. If you chooseMULTI_REGION, you must also provide aRegionListwith the AWS Regions that the keyspace is replicated in.- Returns:
this
-
tags
Sets the value ofCfnKeyspaceMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKeyspaceMixinProps>- Returns:
- a new instance of
CfnKeyspaceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-