Class CfnTable.ProvisionedThroughputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cassandra.CfnTable.ProvisionedThroughputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.ProvisionedThroughputProperty>
- Enclosing interface:
- CfnTable.ProvisionedThroughputProperty
@Stability(Stable)
public static final class CfnTable.ProvisionedThroughputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.ProvisionedThroughputProperty>
A builder for
CfnTable.ProvisionedThroughputProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.readCapacityUnits(Number readCapacityUnits) Sets the value ofCfnTable.ProvisionedThroughputProperty.getReadCapacityUnits()writeCapacityUnits(Number writeCapacityUnits) Sets the value ofCfnTable.ProvisionedThroughputProperty.getWriteCapacityUnits()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
readCapacityUnits
@Stability(Stable) public CfnTable.ProvisionedThroughputProperty.Builder readCapacityUnits(Number readCapacityUnits) Sets the value ofCfnTable.ProvisionedThroughputProperty.getReadCapacityUnits()- Parameters:
readCapacityUnits- The amount of read capacity that's provisioned for the table. This parameter is required. For more information, see Read/write capacity mode in the Amazon Keyspaces Developer Guide .- Returns:
this
-
writeCapacityUnits
@Stability(Stable) public CfnTable.ProvisionedThroughputProperty.Builder writeCapacityUnits(Number writeCapacityUnits) Sets the value ofCfnTable.ProvisionedThroughputProperty.getWriteCapacityUnits()- Parameters:
writeCapacityUnits- The amount of write capacity that's provisioned for the table. This parameter is required. For more information, see Read/write capacity mode in the Amazon Keyspaces Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTable.ProvisionedThroughputProperty>- Returns:
- a new instance of
CfnTable.ProvisionedThroughputProperty - Throws:
NullPointerException- if any required attribute was not provided
-