Class CfnSimpleTable.ProvisionedThroughputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnSimpleTable.ProvisionedThroughputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSimpleTable.ProvisionedThroughputProperty>
- Enclosing interface:
CfnSimpleTable.ProvisionedThroughputProperty
@Stability(Stable)
public static final class CfnSimpleTable.ProvisionedThroughputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSimpleTable.ProvisionedThroughputProperty>
A builder for
CfnSimpleTable.ProvisionedThroughputProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.readCapacityUnits
(Number readCapacityUnits) Sets the value ofCfnSimpleTable.ProvisionedThroughputProperty.getReadCapacityUnits()
writeCapacityUnits
(Number writeCapacityUnits) Sets the value ofCfnSimpleTable.ProvisionedThroughputProperty.getWriteCapacityUnits()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
writeCapacityUnits
@Stability(Stable) public CfnSimpleTable.ProvisionedThroughputProperty.Builder writeCapacityUnits(Number writeCapacityUnits) Sets the value ofCfnSimpleTable.ProvisionedThroughputProperty.getWriteCapacityUnits()
- Parameters:
writeCapacityUnits
- the value to be set. This parameter is required.- Returns:
this
-
readCapacityUnits
@Stability(Stable) public CfnSimpleTable.ProvisionedThroughputProperty.Builder readCapacityUnits(Number readCapacityUnits) Sets the value ofCfnSimpleTable.ProvisionedThroughputProperty.getReadCapacityUnits()
- Parameters:
readCapacityUnits
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSimpleTable.ProvisionedThroughputProperty>
- Returns:
- a new instance of
CfnSimpleTable.ProvisionedThroughputProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-