Class CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cassandra.CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty>
- Enclosing interface:
CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty
@Stability(Stable)
public static final class CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.disableScaleIn(Boolean disableScaleIn) disableScaleIn(IResolvable disableScaleIn) scaleInCooldown(Number scaleInCooldown) scaleOutCooldown(Number scaleOutCooldown) targetValue(Number targetValue)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
disableScaleIn
@Stability(Stable) public CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.Builder disableScaleIn(Boolean disableScaleIn) Sets the value ofCfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.getDisableScaleIn()- Parameters:
disableScaleIn- Specifies ifscale-inis enabled. When auto scaling automatically decreases capacity for a table, the table scales in . When scaling policies are set, they can't scale in the table lower than its minimum capacity.- Returns:
this
-
disableScaleIn
@Stability(Stable) public CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.Builder disableScaleIn(IResolvable disableScaleIn) Sets the value ofCfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.getDisableScaleIn()- Parameters:
disableScaleIn- Specifies ifscale-inis enabled. When auto scaling automatically decreases capacity for a table, the table scales in . When scaling policies are set, they can't scale in the table lower than its minimum capacity.- Returns:
this
-
scaleInCooldown
@Stability(Stable) public CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.Builder scaleInCooldown(Number scaleInCooldown) Sets the value ofCfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.getScaleInCooldown()- Parameters:
scaleInCooldown- Specifies ascale-incool down period. A cooldown period in seconds between scaling activities that lets the table stabilize before another scaling activity starts.- Returns:
this
-
scaleOutCooldown
@Stability(Stable) public CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.Builder scaleOutCooldown(Number scaleOutCooldown) Sets the value ofCfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.getScaleOutCooldown()- Parameters:
scaleOutCooldown- Specifies a scale out cool down period. A cooldown period in seconds between scaling activities that lets the table stabilize before another scaling activity starts.- Returns:
this
-
targetValue
@Stability(Stable) public CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.Builder targetValue(Number targetValue) Sets the value ofCfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty.getTargetValue()- Parameters:
targetValue- Specifies the target value for the target tracking auto scaling policy. Amazon Keyspaces auto scaling scales up capacity automatically when traffic exceeds this target utilization rate, and then back down when it falls below the target. This ensures that the ratio of consumed capacity to provisioned capacity stays at or near this value. You definetargetValueas a percentage. Anintegerbetween 20 and 90.- Returns:
this
-
build
@Stability(Stable) public CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty>- Returns:
- a new instance of
CfnTablePropsMixin.TargetTrackingScalingPolicyConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-