Class AdjustmentTier.Builder
java.lang.Object
software.amazon.awscdk.services.applicationautoscaling.AdjustmentTier.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AdjustmentTier>
- Enclosing interface:
AdjustmentTier
@Stability(Stable)
public static final class AdjustmentTier.Builder
extends Object
implements software.amazon.jsii.Builder<AdjustmentTier>
A builder for
AdjustmentTier-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadjustment(Number adjustment) Sets the value ofAdjustmentTier.getAdjustment()build()Builds the configured instance.lowerBound(Number lowerBound) Sets the value ofAdjustmentTier.getLowerBound()upperBound(Number upperBound) Sets the value ofAdjustmentTier.getUpperBound()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adjustment
Sets the value ofAdjustmentTier.getAdjustment()- Parameters:
adjustment- What number to adjust the capacity with. This parameter is required. The number is interpreted as an added capacity, a new fixed capacity or an added percentage depending on the AdjustmentType value of the StepScalingPolicy.Can be positive or negative.
- Returns:
this
-
lowerBound
Sets the value ofAdjustmentTier.getLowerBound()- Parameters:
lowerBound- Lower bound where this scaling tier applies. The scaling tier applies if the difference between the metric value and its alarm threshold is higher than this value.- Returns:
this
-
upperBound
Sets the value ofAdjustmentTier.getUpperBound()- Parameters:
upperBound- Upper bound where this scaling tier applies. The scaling tier applies if the difference between the metric value and its alarm threshold is lower than this value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AdjustmentTier>- Returns:
- a new instance of
AdjustmentTier - Throws:
NullPointerException- if any required attribute was not provided
-