Class CfnTablePropsMixin.BillingModeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cassandra.CfnTablePropsMixin.BillingModeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTablePropsMixin.BillingModeProperty>
- Enclosing interface:
CfnTablePropsMixin.BillingModeProperty
@Stability(Stable)
public static final class CfnTablePropsMixin.BillingModeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTablePropsMixin.BillingModeProperty>
A builder for
CfnTablePropsMixin.BillingModeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTablePropsMixin.BillingModeProperty.getMode()provisionedThroughput(CfnTablePropsMixin.ProvisionedThroughputProperty provisionedThroughput) Sets the value ofCfnTablePropsMixin.BillingModeProperty.getProvisionedThroughput()provisionedThroughput(IResolvable provisionedThroughput) Sets the value ofCfnTablePropsMixin.BillingModeProperty.getProvisionedThroughput()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mode
Sets the value ofCfnTablePropsMixin.BillingModeProperty.getMode()- Parameters:
mode- The billing mode for the table:.- On-demand mode -
ON_DEMAND - Provisioned mode -
PROVISIONED
If you choose
PROVISIONEDmode, then you also need to specify provisioned throughput (read and write capacity) for the table.Valid values:
ON_DEMAND|PROVISIONED- On-demand mode -
- Returns:
this
-
provisionedThroughput
@Stability(Stable) public CfnTablePropsMixin.BillingModeProperty.Builder provisionedThroughput(IResolvable provisionedThroughput) Sets the value ofCfnTablePropsMixin.BillingModeProperty.getProvisionedThroughput()- Parameters:
provisionedThroughput- The provisioned read capacity and write capacity for the table. For more information, see Provisioned throughput capacity mode in the Amazon Keyspaces Developer Guide .- Returns:
this
-
provisionedThroughput
@Stability(Stable) public CfnTablePropsMixin.BillingModeProperty.Builder provisionedThroughput(CfnTablePropsMixin.ProvisionedThroughputProperty provisionedThroughput) Sets the value ofCfnTablePropsMixin.BillingModeProperty.getProvisionedThroughput()- Parameters:
provisionedThroughput- The provisioned read capacity and write capacity for the table. For more information, see Provisioned throughput capacity mode in the Amazon Keyspaces Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTablePropsMixin.BillingModeProperty>- Returns:
- a new instance of
CfnTablePropsMixin.BillingModeProperty - Throws:
NullPointerException- if any required attribute was not provided
-