public static final class ScalingInterval.Builder
extends java.lang.Object
ScalingInterval
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ScalingInterval |
build()
Builds the configured instance.
|
ScalingInterval.Builder |
change(java.lang.Number change)
Sets the value of
ScalingInterval.getChange() |
ScalingInterval.Builder |
lower(java.lang.Number lower)
Sets the value of
ScalingInterval.getLower() |
ScalingInterval.Builder |
upper(java.lang.Number upper)
Sets the value of
ScalingInterval.getUpper() |
public ScalingInterval.Builder change(java.lang.Number change)
ScalingInterval.getChange()
change
- The capacity adjustment to apply in this interval. This parameter is required.
The number is interpreted differently based on AdjustmentType:
this
public ScalingInterval.Builder lower(java.lang.Number lower)
ScalingInterval.getLower()
lower
- The lower bound of the interval.
The scaling adjustment will be applied if the metric is higher than this value.this
public ScalingInterval.Builder upper(java.lang.Number upper)
ScalingInterval.getUpper()
upper
- The upper bound of the interval.
The scaling adjustment will be applied if the metric is lower than this value.this
public ScalingInterval build()
ScalingInterval
java.lang.NullPointerException
- if any required attribute was not provided