Class ThroughputProps.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.ThroughputProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ThroughputProps>
- Enclosing interface:
ThroughputProps
@Stability(Stable)
public static final class ThroughputProps.Builder
extends Object
implements software.amazon.jsii.Builder<ThroughputProps>
A builder for
ThroughputProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.readCapacity(Capacity readCapacity) Sets the value ofThroughputProps.getReadCapacity()writeCapacity(Capacity writeCapacity) Sets the value ofThroughputProps.getWriteCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
readCapacity
Sets the value ofThroughputProps.getReadCapacity()- Parameters:
readCapacity- The read capacity. This parameter is required.- Returns:
this
-
writeCapacity
Sets the value ofThroughputProps.getWriteCapacity()- Parameters:
writeCapacity- The write capacity. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ThroughputProps>- Returns:
- a new instance of
ThroughputProps - Throws:
NullPointerException- if any required attribute was not provided
-