Class CfnTable.BillingModeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cassandra.CfnTable.BillingModeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.BillingModeProperty>
- Enclosing interface:
CfnTable.BillingModeProperty
@Stability(Stable)
public static final class CfnTable.BillingModeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.BillingModeProperty>
A builder for
CfnTable.BillingModeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTable.BillingModeProperty.getMode()provisionedThroughput(IResolvable provisionedThroughput) Sets the value ofCfnTable.BillingModeProperty.getProvisionedThroughput()provisionedThroughput(CfnTable.ProvisionedThroughputProperty provisionedThroughput) Sets the value ofCfnTable.BillingModeProperty.getProvisionedThroughput()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mode
Sets the value ofCfnTable.BillingModeProperty.getMode()- Parameters:
mode- The billing mode for the table:. This parameter is required.- 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 CfnTable.BillingModeProperty.Builder provisionedThroughput(IResolvable provisionedThroughput) Sets the value ofCfnTable.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 CfnTable.BillingModeProperty.Builder provisionedThroughput(CfnTable.ProvisionedThroughputProperty provisionedThroughput) Sets the value ofCfnTable.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<CfnTable.BillingModeProperty>- Returns:
- a new instance of
CfnTable.BillingModeProperty - Throws:
NullPointerException- if any required attribute was not provided
-