Class CfnScalingPolicy.StepAdjustmentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.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, based on the specified adjustment type. This parameter is required. A positive value adds to the current capacity while a negative number removes from the current capacity. For exact capacity, you must specify a non-negative value.- 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.- 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.The upper bound must be greater than the 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
-