public static final class CfnScalingPolicy.StepAdjustmentProperty.Builder
extends java.lang.Object
CfnScalingPolicy.StepAdjustmentProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnScalingPolicy.StepAdjustmentProperty |
build()
Builds the configured instance.
|
CfnScalingPolicy.StepAdjustmentProperty.Builder |
metricIntervalLowerBound(java.lang.Number metricIntervalLowerBound)
Sets the value of
CfnScalingPolicy.StepAdjustmentProperty.getMetricIntervalLowerBound() |
CfnScalingPolicy.StepAdjustmentProperty.Builder |
metricIntervalUpperBound(java.lang.Number metricIntervalUpperBound)
Sets the value of
CfnScalingPolicy.StepAdjustmentProperty.getMetricIntervalUpperBound() |
CfnScalingPolicy.StepAdjustmentProperty.Builder |
scalingAdjustment(java.lang.Number scalingAdjustment)
Sets the value of
CfnScalingPolicy.StepAdjustmentProperty.getScalingAdjustment() |
public CfnScalingPolicy.StepAdjustmentProperty.Builder scalingAdjustment(java.lang.Number scalingAdjustment)
CfnScalingPolicy.StepAdjustmentProperty.getScalingAdjustment()
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.
The amount by which to scale. The adjustment is based on the value that you specified in the AdjustmentType
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.
this
public CfnScalingPolicy.StepAdjustmentProperty.Builder metricIntervalLowerBound(java.lang.Number metricIntervalLowerBound)
CfnScalingPolicy.StepAdjustmentProperty.getMetricIntervalLowerBound()
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.this
public CfnScalingPolicy.StepAdjustmentProperty.Builder metricIntervalUpperBound(java.lang.Number metricIntervalUpperBound)
CfnScalingPolicy.StepAdjustmentProperty.getMetricIntervalUpperBound()
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.
this
public CfnScalingPolicy.StepAdjustmentProperty build()
CfnScalingPolicy.StepAdjustmentProperty
java.lang.NullPointerException
- if any required attribute was not provided