Class CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty>
- Enclosing interface:
CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty
@Stability(Stable)
public static final class CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalTable.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
-
targetValue
@Stability(Stable) public CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty.Builder targetValue(Number targetValue) - Parameters:
targetValue
- Defines a target value for the scaling policy. This parameter is required.- Returns:
this
-
disableScaleIn
@Stability(Stable) public CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty.Builder disableScaleIn(Boolean disableScaleIn) Sets the value ofCfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty.getDisableScaleIn()
- Parameters:
disableScaleIn
- Indicates whether scale in by the target tracking scaling policy is disabled. The default value isfalse
.- Returns:
this
-
disableScaleIn
@Stability(Stable) public CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty.Builder disableScaleIn(IResolvable disableScaleIn) Sets the value ofCfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty.getDisableScaleIn()
- Parameters:
disableScaleIn
- Indicates whether scale in by the target tracking scaling policy is disabled. The default value isfalse
.- Returns:
this
-
scaleInCooldown
@Stability(Stable) public CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty.Builder scaleInCooldown(Number scaleInCooldown) Sets the value ofCfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty.getScaleInCooldown()
- Parameters:
scaleInCooldown
- The amount of time, in seconds, after a scale-in activity completes before another scale-in activity can start.- Returns:
this
-
scaleOutCooldown
@Stability(Stable) public CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty.Builder scaleOutCooldown(Number scaleOutCooldown) Sets the value ofCfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty.getScaleOutCooldown()
- Parameters:
scaleOutCooldown
- The amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty>
- Returns:
- a new instance of
CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-