Class CfnTablePropsMixin.ProvisionedThroughputProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dynamodb.CfnTablePropsMixin.ProvisionedThroughputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTablePropsMixin.ProvisionedThroughputProperty>
- Enclosing interface:
CfnTablePropsMixin.ProvisionedThroughputProperty
@Stability(Stable)
public static final class CfnTablePropsMixin.ProvisionedThroughputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTablePropsMixin.ProvisionedThroughputProperty>
A builder for
CfnTablePropsMixin.ProvisionedThroughputProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.readCapacityUnits(Number readCapacityUnits) Sets the value ofCfnTablePropsMixin.ProvisionedThroughputProperty.getReadCapacityUnits()writeCapacityUnits(Number writeCapacityUnits) Sets the value ofCfnTablePropsMixin.ProvisionedThroughputProperty.getWriteCapacityUnits()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
readCapacityUnits
@Stability(Stable) public CfnTablePropsMixin.ProvisionedThroughputProperty.Builder readCapacityUnits(Number readCapacityUnits) Sets the value ofCfnTablePropsMixin.ProvisionedThroughputProperty.getReadCapacityUnits()- Parameters:
readCapacityUnits- The maximum number of strongly consistent reads consumed per second before DynamoDB returns aThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .If read/write capacity mode is
PAY_PER_REQUESTthe value is set to 0.- Returns:
this
-
writeCapacityUnits
@Stability(Stable) public CfnTablePropsMixin.ProvisionedThroughputProperty.Builder writeCapacityUnits(Number writeCapacityUnits) Sets the value ofCfnTablePropsMixin.ProvisionedThroughputProperty.getWriteCapacityUnits()- Parameters:
writeCapacityUnits- The maximum number of writes consumed per second before DynamoDB returns aThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .If read/write capacity mode is
PAY_PER_REQUESTthe value is set to 0.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTablePropsMixin.ProvisionedThroughputProperty>- Returns:
- a new instance of
CfnTablePropsMixin.ProvisionedThroughputProperty - Throws:
NullPointerException- if any required attribute was not provided
-