Class CfnScalingPolicy.StepAdjustmentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.StepAdjustmentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPolicy.StepAdjustmentProperty>
- Enclosing interface:
- CfnScalingPolicy.StepAdjustmentProperty
@Stability(Stable)
public static final class CfnScalingPolicy.StepAdjustmentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPolicy.StepAdjustmentProperty>
A builder for
CfnScalingPolicy.StepAdjustmentProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.metricIntervalLowerBound
(Number metricIntervalLowerBound) Sets the value ofCfnScalingPolicy.StepAdjustmentProperty.getMetricIntervalLowerBound()
metricIntervalUpperBound
(Number metricIntervalUpperBound) Sets the value ofCfnScalingPolicy.StepAdjustmentProperty.getMetricIntervalUpperBound()
scalingAdjustment
(Number scalingAdjustment) Sets the value ofCfnScalingPolicy.StepAdjustmentProperty.getScalingAdjustment()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scalingAdjustment
@Stability(Stable) public CfnScalingPolicy.StepAdjustmentProperty.Builder scalingAdjustment(Number scalingAdjustment) Sets the value ofCfnScalingPolicy.StepAdjustmentProperty.getScalingAdjustment()
- Parameters:
scalingAdjustment
- The amount by which to scale. This parameter is required. The adjustment is based on the value that you specified in theAdjustmentType
property (either an absolute number or a percentage). A positive value adds to the current capacity and a negative number subtracts from the current capacity.- Returns:
this
-
metricIntervalLowerBound
@Stability(Stable) public CfnScalingPolicy.StepAdjustmentProperty.Builder metricIntervalLowerBound(Number metricIntervalLowerBound) Sets the value ofCfnScalingPolicy.StepAdjustmentProperty.getMetricIntervalLowerBound()
- Parameters:
metricIntervalLowerBound
- The lower bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the lower bound is inclusive (the metric must be greater than or equal to the threshold plus the lower bound). Otherwise, it is exclusive (the metric must be greater than the threshold plus the lower bound). A null value indicates negative infinity.You must specify at least one upper or lower bound.
- Returns:
this
-
metricIntervalUpperBound
@Stability(Stable) public CfnScalingPolicy.StepAdjustmentProperty.Builder metricIntervalUpperBound(Number metricIntervalUpperBound) Sets the value ofCfnScalingPolicy.StepAdjustmentProperty.getMetricIntervalUpperBound()
- Parameters:
metricIntervalUpperBound
- The upper bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the upper bound is exclusive (the metric must be less than the threshold plus the upper bound). Otherwise, it is inclusive (the metric must be less than or equal to the threshold plus the upper bound). A null value indicates positive infinity.You must specify at least one upper or lower bound.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnScalingPolicy.StepAdjustmentProperty>
- Returns:
- a new instance of
CfnScalingPolicy.StepAdjustmentProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-