Class AutoscaledCapacityOptions.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.AutoscaledCapacityOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AutoscaledCapacityOptions>
- Enclosing interface:
AutoscaledCapacityOptions
@Stability(Stable)
public static final class AutoscaledCapacityOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AutoscaledCapacityOptions>
A builder for
AutoscaledCapacityOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maxCapacity
(Number maxCapacity) Sets the value ofAutoscaledCapacityOptions.getMaxCapacity()
minCapacity
(Number minCapacity) Sets the value ofAutoscaledCapacityOptions.getMinCapacity()
seedCapacity
(Number seedCapacity) Sets the value ofAutoscaledCapacityOptions.getSeedCapacity()
targetUtilizationPercent
(Number targetUtilizationPercent) Sets the value ofAutoscaledCapacityOptions.getTargetUtilizationPercent()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxCapacity
Sets the value ofAutoscaledCapacityOptions.getMaxCapacity()
- Parameters:
maxCapacity
- The maximum allowable capacity. This parameter is required.- Returns:
this
-
minCapacity
Sets the value ofAutoscaledCapacityOptions.getMinCapacity()
- Parameters:
minCapacity
- The minimum allowable capacity.- Returns:
this
-
seedCapacity
Sets the value ofAutoscaledCapacityOptions.getSeedCapacity()
- Parameters:
seedCapacity
- If you want to switch a table's billing mode from on-demand to provisioned or from provisioned to on-demand, you must specify a value for this property for each autoscaled resource.- Returns:
this
-
targetUtilizationPercent
@Stability(Stable) public AutoscaledCapacityOptions.Builder targetUtilizationPercent(Number targetUtilizationPercent) Sets the value ofAutoscaledCapacityOptions.getTargetUtilizationPercent()
- Parameters:
targetUtilizationPercent
- The ratio of consumed capacity units to provisioned capacity units. Note: Target utilization percent cannot be less than 20 and cannot be greater than 90.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AutoscaledCapacityOptions>
- Returns:
- a new instance of
AutoscaledCapacityOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-