Class CfnScalableTarget.SuspendedStateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationautoscaling.CfnScalableTarget.SuspendedStateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalableTarget.SuspendedStateProperty>
- Enclosing interface:
CfnScalableTarget.SuspendedStateProperty
@Stability(Stable)
public static final class CfnScalableTarget.SuspendedStateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalableTarget.SuspendedStateProperty>
A builder for
CfnScalableTarget.SuspendedStateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dynamicScalingInSuspended(Boolean dynamicScalingInSuspended) Sets the value ofCfnScalableTarget.SuspendedStateProperty.getDynamicScalingInSuspended()dynamicScalingInSuspended(IResolvable dynamicScalingInSuspended) Sets the value ofCfnScalableTarget.SuspendedStateProperty.getDynamicScalingInSuspended()dynamicScalingOutSuspended(Boolean dynamicScalingOutSuspended) Sets the value ofCfnScalableTarget.SuspendedStateProperty.getDynamicScalingOutSuspended()dynamicScalingOutSuspended(IResolvable dynamicScalingOutSuspended) Sets the value ofCfnScalableTarget.SuspendedStateProperty.getDynamicScalingOutSuspended()scheduledScalingSuspended(Boolean scheduledScalingSuspended) Sets the value ofCfnScalableTarget.SuspendedStateProperty.getScheduledScalingSuspended()scheduledScalingSuspended(IResolvable scheduledScalingSuspended) Sets the value ofCfnScalableTarget.SuspendedStateProperty.getScheduledScalingSuspended()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dynamicScalingInSuspended
@Stability(Stable) public CfnScalableTarget.SuspendedStateProperty.Builder dynamicScalingInSuspended(Boolean dynamicScalingInSuspended) Sets the value ofCfnScalableTarget.SuspendedStateProperty.getDynamicScalingInSuspended()- 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 CfnScalableTarget.SuspendedStateProperty.Builder dynamicScalingInSuspended(IResolvable dynamicScalingInSuspended) Sets the value ofCfnScalableTarget.SuspendedStateProperty.getDynamicScalingInSuspended()- 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 CfnScalableTarget.SuspendedStateProperty.Builder dynamicScalingOutSuspended(Boolean dynamicScalingOutSuspended) Sets the value ofCfnScalableTarget.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 CfnScalableTarget.SuspendedStateProperty.Builder dynamicScalingOutSuspended(IResolvable dynamicScalingOutSuspended) Sets the value ofCfnScalableTarget.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 CfnScalableTarget.SuspendedStateProperty.Builder scheduledScalingSuspended(Boolean scheduledScalingSuspended) Sets the value ofCfnScalableTarget.SuspendedStateProperty.getScheduledScalingSuspended()- 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 CfnScalableTarget.SuspendedStateProperty.Builder scheduledScalingSuspended(IResolvable scheduledScalingSuspended) Sets the value ofCfnScalableTarget.SuspendedStateProperty.getScheduledScalingSuspended()- 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<CfnScalableTarget.SuspendedStateProperty>- Returns:
- a new instance of
CfnScalableTarget.SuspendedStateProperty - Throws:
NullPointerException- if any required attribute was not provided
-