public static final class StepScalingActionProps.Builder
extends java.lang.Object
StepScalingActionProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StepScalingActionProps.Builder |
adjustmentType(AdjustmentType adjustmentType)
Sets the value of
StepScalingActionProps.getAdjustmentType() |
StepScalingActionProps |
build()
Builds the configured instance.
|
StepScalingActionProps.Builder |
cooldown(Duration cooldown)
Sets the value of
StepScalingActionProps.getCooldown() |
StepScalingActionProps.Builder |
metricAggregationType(MetricAggregationType metricAggregationType)
Sets the value of
StepScalingActionProps.getMetricAggregationType() |
StepScalingActionProps.Builder |
minAdjustmentMagnitude(java.lang.Number minAdjustmentMagnitude)
Sets the value of
StepScalingActionProps.getMinAdjustmentMagnitude() |
StepScalingActionProps.Builder |
policyName(java.lang.String policyName)
Sets the value of
StepScalingActionProps.getPolicyName() |
StepScalingActionProps.Builder |
scalingTarget(IScalableTarget scalingTarget)
Sets the value of
StepScalingActionProps.getScalingTarget() |
public StepScalingActionProps.Builder scalingTarget(IScalableTarget scalingTarget)
StepScalingActionProps.getScalingTarget()
scalingTarget
- The scalable target. This parameter is required.this
public StepScalingActionProps.Builder adjustmentType(AdjustmentType adjustmentType)
StepScalingActionProps.getAdjustmentType()
adjustmentType
- How the adjustment numbers are interpreted.this
public StepScalingActionProps.Builder cooldown(Duration cooldown)
StepScalingActionProps.getCooldown()
cooldown
- Grace period after scaling activity.
For scale out policies, multiple scale outs during the cooldown period are
squashed so that only the biggest scale out happens.
For scale in policies, subsequent scale ins during the cooldown period are ignored.
this
public StepScalingActionProps.Builder metricAggregationType(MetricAggregationType metricAggregationType)
StepScalingActionProps.getMetricAggregationType()
metricAggregationType
- The aggregation type for the CloudWatch metrics.this
public StepScalingActionProps.Builder minAdjustmentMagnitude(java.lang.Number minAdjustmentMagnitude)
StepScalingActionProps.getMinAdjustmentMagnitude()
minAdjustmentMagnitude
- Minimum absolute number to adjust capacity with as result of percentage scaling.
Only when using AdjustmentType = PercentChangeInCapacity, this number controls
the minimum absolute effect size.this
public StepScalingActionProps.Builder policyName(java.lang.String policyName)
StepScalingActionProps.getPolicyName()
policyName
- A name for the scaling policy.this
public StepScalingActionProps build()
StepScalingActionProps
java.lang.NullPointerException
- if any required attribute was not provided