Class CfnScalableTargetPropsMixin.SuspendedStateProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationautoscaling.CfnScalableTargetPropsMixin.SuspendedStateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalableTargetPropsMixin.SuspendedStateProperty>
- Enclosing interface:
CfnScalableTargetPropsMixin.SuspendedStateProperty
@Stability(Stable)
public static final class CfnScalableTargetPropsMixin.SuspendedStateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalableTargetPropsMixin.SuspendedStateProperty>
A builder for
CfnScalableTargetPropsMixin.SuspendedStateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dynamicScalingInSuspended(Boolean dynamicScalingInSuspended) dynamicScalingInSuspended(IResolvable dynamicScalingInSuspended) dynamicScalingOutSuspended(Boolean dynamicScalingOutSuspended) dynamicScalingOutSuspended(IResolvable dynamicScalingOutSuspended) scheduledScalingSuspended(Boolean scheduledScalingSuspended) scheduledScalingSuspended(IResolvable scheduledScalingSuspended)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dynamicScalingInSuspended
@Stability(Stable) public CfnScalableTargetPropsMixin.SuspendedStateProperty.Builder dynamicScalingInSuspended(Boolean dynamicScalingInSuspended) - Parameters:
dynamicScalingInSuspended- Whether scale in by a target tracking scaling policy or a step scaling policy is suspended. Set the value totrueif you don't want Application Auto Scaling to remove capacity when a scaling policy is triggered. The default isfalse.- Returns:
this
-
dynamicScalingInSuspended
@Stability(Stable) public CfnScalableTargetPropsMixin.SuspendedStateProperty.Builder dynamicScalingInSuspended(IResolvable dynamicScalingInSuspended) - Parameters:
dynamicScalingInSuspended- Whether scale in by a target tracking scaling policy or a step scaling policy is suspended. Set the value totrueif you don't want Application Auto Scaling to remove capacity when a scaling policy is triggered. The default isfalse.- Returns:
this
-
dynamicScalingOutSuspended
@Stability(Stable) public CfnScalableTargetPropsMixin.SuspendedStateProperty.Builder dynamicScalingOutSuspended(Boolean dynamicScalingOutSuspended) Sets the value ofCfnScalableTargetPropsMixin.SuspendedStateProperty.getDynamicScalingOutSuspended()- Parameters:
dynamicScalingOutSuspended- Whether scale out by a target tracking scaling policy or a step scaling policy is suspended. Set the value totrueif you don't want Application Auto Scaling to add capacity when a scaling policy is triggered. The default isfalse.- Returns:
this
-
dynamicScalingOutSuspended
@Stability(Stable) public CfnScalableTargetPropsMixin.SuspendedStateProperty.Builder dynamicScalingOutSuspended(IResolvable dynamicScalingOutSuspended) Sets the value ofCfnScalableTargetPropsMixin.SuspendedStateProperty.getDynamicScalingOutSuspended()- Parameters:
dynamicScalingOutSuspended- Whether scale out by a target tracking scaling policy or a step scaling policy is suspended. Set the value totrueif you don't want Application Auto Scaling to add capacity when a scaling policy is triggered. The default isfalse.- Returns:
this
-
scheduledScalingSuspended
@Stability(Stable) public CfnScalableTargetPropsMixin.SuspendedStateProperty.Builder scheduledScalingSuspended(Boolean scheduledScalingSuspended) - Parameters:
scheduledScalingSuspended- Whether scheduled scaling is suspended. Set the value totrueif you don't want Application Auto Scaling to add or remove capacity by initiating scheduled actions. The default isfalse.- Returns:
this
-
scheduledScalingSuspended
@Stability(Stable) public CfnScalableTargetPropsMixin.SuspendedStateProperty.Builder scheduledScalingSuspended(IResolvable scheduledScalingSuspended) - Parameters:
scheduledScalingSuspended- Whether scheduled scaling is suspended. Set the value totrueif you don't want Application Auto Scaling to add or remove capacity by initiating scheduled actions. The default isfalse.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalableTargetPropsMixin.SuspendedStateProperty>- Returns:
- a new instance of
CfnScalableTargetPropsMixin.SuspendedStateProperty - Throws:
NullPointerException- if any required attribute was not provided
-