Class ScalingInterval.Builder
java.lang.Object
software.amazon.awscdk.services.applicationautoscaling.ScalingInterval.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScalingInterval>
- Enclosing interface:
ScalingInterval
@Stability(Stable)
public static final class ScalingInterval.Builder
extends Object
implements software.amazon.jsii.Builder<ScalingInterval>
A builder for
ScalingInterval-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofScalingInterval.getChange()Sets the value ofScalingInterval.getLower()Sets the value ofScalingInterval.getUpper()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
change
Sets the value ofScalingInterval.getChange()- Parameters:
change- The capacity adjustment to apply in this interval. This parameter is required. The number is interpreted differently based on AdjustmentType:- ChangeInCapacity: add the adjustment to the current capacity. The number can be positive or negative.
- PercentChangeInCapacity: add or remove the given percentage of the current capacity to itself. The number can be in the range [-100..100].
- ExactCapacity: set the capacity to this number. The number must be positive.
- Returns:
this
-
lower
Sets the value ofScalingInterval.getLower()- Parameters:
lower- The lower bound of the interval. The scaling adjustment will be applied if the metric is higher than or equal this value.- Returns:
this
-
upper
Sets the value ofScalingInterval.getUpper()- Parameters:
upper- The upper bound of the interval. The scaling adjustment will be applied if the metric is lower than this value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ScalingInterval>- Returns:
- a new instance of
ScalingInterval - Throws:
NullPointerException- if any required attribute was not provided
-