Class CfnScalingPolicyPropsMixin.StepAdjustmentProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.autoscaling.CfnScalingPolicyPropsMixin.StepAdjustmentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.StepAdjustmentProperty>
- Enclosing interface:
CfnScalingPolicyPropsMixin.StepAdjustmentProperty
@Stability(Stable)
public static final class CfnScalingPolicyPropsMixin.StepAdjustmentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.StepAdjustmentProperty>
A builder for
CfnScalingPolicyPropsMixin.StepAdjustmentProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricIntervalLowerBound(Number metricIntervalLowerBound) metricIntervalUpperBound(Number metricIntervalUpperBound) scalingAdjustment(Number scalingAdjustment) Sets the value ofCfnScalingPolicyPropsMixin.StepAdjustmentProperty.getScalingAdjustment()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricIntervalLowerBound
@Stability(Stable) public CfnScalingPolicyPropsMixin.StepAdjustmentProperty.Builder metricIntervalLowerBound(Number metricIntervalLowerBound) - 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 CfnScalingPolicyPropsMixin.StepAdjustmentProperty.Builder metricIntervalUpperBound(Number metricIntervalUpperBound) - 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
-
scalingAdjustment
@Stability(Stable) public CfnScalingPolicyPropsMixin.StepAdjustmentProperty.Builder scalingAdjustment(Number scalingAdjustment) Sets the value ofCfnScalingPolicyPropsMixin.StepAdjustmentProperty.getScalingAdjustment()- Parameters:
scalingAdjustment- The amount by which to scale, based on the specified adjustment type. 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.StepAdjustmentProperty>- Returns:
- a new instance of
CfnScalingPolicyPropsMixin.StepAdjustmentProperty - Throws:
NullPointerException- if any required attribute was not provided
-