Class CfnTable.ProvisionedThroughputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.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
-
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 maximum number of strongly consistent reads consumed per second before DynamoDB returns aThrottlingException
. This parameter is required. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .If read/write capacity mode is
PAY_PER_REQUEST
the value is set to 0.- Returns:
this
-
writeCapacityUnits
@Stability(Stable) public CfnTable.ProvisionedThroughputProperty.Builder writeCapacityUnits(Number writeCapacityUnits) Sets the value ofCfnTable.ProvisionedThroughputProperty.getWriteCapacityUnits()
- Parameters:
writeCapacityUnits
- The maximum number of writes consumed per second before DynamoDB returns aThrottlingException
. This parameter is required. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .If read/write capacity mode is
PAY_PER_REQUEST
the value is set to 0.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTable.ProvisionedThroughputProperty>
- Returns:
- a new instance of
CfnTable.ProvisionedThroughputProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-