Class CfnTablePropsMixin.AutoScalingSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cassandra.CfnTablePropsMixin.AutoScalingSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTablePropsMixin.AutoScalingSettingProperty>
- Enclosing interface:
CfnTablePropsMixin.AutoScalingSettingProperty
@Stability(Stable)
public static final class CfnTablePropsMixin.AutoScalingSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTablePropsMixin.AutoScalingSettingProperty>
A builder for
CfnTablePropsMixin.AutoScalingSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScalingDisabled(Boolean autoScalingDisabled) Sets the value ofCfnTablePropsMixin.AutoScalingSettingProperty.getAutoScalingDisabled()autoScalingDisabled(IResolvable autoScalingDisabled) Sets the value ofCfnTablePropsMixin.AutoScalingSettingProperty.getAutoScalingDisabled()build()Builds the configured instance.maximumUnits(Number maximumUnits) Sets the value ofCfnTablePropsMixin.AutoScalingSettingProperty.getMaximumUnits()minimumUnits(Number minimumUnits) Sets the value ofCfnTablePropsMixin.AutoScalingSettingProperty.getMinimumUnits()scalingPolicy(CfnTablePropsMixin.ScalingPolicyProperty scalingPolicy) Sets the value ofCfnTablePropsMixin.AutoScalingSettingProperty.getScalingPolicy()scalingPolicy(IResolvable scalingPolicy) Sets the value ofCfnTablePropsMixin.AutoScalingSettingProperty.getScalingPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingDisabled
@Stability(Stable) public CfnTablePropsMixin.AutoScalingSettingProperty.Builder autoScalingDisabled(Boolean autoScalingDisabled) Sets the value ofCfnTablePropsMixin.AutoScalingSettingProperty.getAutoScalingDisabled()- Parameters:
autoScalingDisabled- This optional parameter enables auto scaling for the table if set tofalse.- Returns:
this
-
autoScalingDisabled
@Stability(Stable) public CfnTablePropsMixin.AutoScalingSettingProperty.Builder autoScalingDisabled(IResolvable autoScalingDisabled) Sets the value ofCfnTablePropsMixin.AutoScalingSettingProperty.getAutoScalingDisabled()- Parameters:
autoScalingDisabled- This optional parameter enables auto scaling for the table if set tofalse.- Returns:
this
-
maximumUnits
@Stability(Stable) public CfnTablePropsMixin.AutoScalingSettingProperty.Builder maximumUnits(Number maximumUnits) Sets the value ofCfnTablePropsMixin.AutoScalingSettingProperty.getMaximumUnits()- Parameters:
maximumUnits- Manage costs by specifying the maximum amount of throughput to provision. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).- Returns:
this
-
minimumUnits
@Stability(Stable) public CfnTablePropsMixin.AutoScalingSettingProperty.Builder minimumUnits(Number minimumUnits) Sets the value ofCfnTablePropsMixin.AutoScalingSettingProperty.getMinimumUnits()- Parameters:
minimumUnits- The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).- Returns:
this
-
scalingPolicy
@Stability(Stable) public CfnTablePropsMixin.AutoScalingSettingProperty.Builder scalingPolicy(IResolvable scalingPolicy) Sets the value ofCfnTablePropsMixin.AutoScalingSettingProperty.getScalingPolicy()- Parameters:
scalingPolicy- Amazon Keyspaces supports thetarget trackingauto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.- Returns:
this
-
scalingPolicy
@Stability(Stable) public CfnTablePropsMixin.AutoScalingSettingProperty.Builder scalingPolicy(CfnTablePropsMixin.ScalingPolicyProperty scalingPolicy) Sets the value ofCfnTablePropsMixin.AutoScalingSettingProperty.getScalingPolicy()- Parameters:
scalingPolicy- Amazon Keyspaces supports thetarget trackingauto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTablePropsMixin.AutoScalingSettingProperty>- Returns:
- a new instance of
CfnTablePropsMixin.AutoScalingSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-