@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.382Z") @Stability(value=Stable) public enum AdjustmentType extends Enum<AdjustmentType>
Example:
ScalableAttribute capacity;
Metric cpuUtilization;
capacity.scaleOnMetric("ScaleToCPU", BasicStepScalingPolicyProps.builder()
.metric(cpuUtilization)
.scalingSteps(List.of(ScalingInterval.builder().upper(10).change(-1).build(), ScalingInterval.builder().lower(50).change(+1).build(), ScalingInterval.builder().lower(70).change(+3).build()))
// Change this to AdjustmentType.PercentChangeInCapacity to interpret the
// 'change' numbers before as percentages instead of capacity counts.
.adjustmentType(AdjustmentType.CHANGE_IN_CAPACITY)
.build());
| Enum Constant and Description |
|---|
CHANGE_IN_CAPACITY
Add the adjustment number to the current capacity.
|
EXACT_CAPACITY
Make the capacity equal to the exact number given.
|
PERCENT_CHANGE_IN_CAPACITY
Add this percentage of the current capacity to itself.
|
| Modifier and Type | Method and Description |
|---|---|
static AdjustmentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdjustmentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final AdjustmentType CHANGE_IN_CAPACITY
A positive number increases capacity, a negative number decreases capacity.
@Stability(value=Stable) public static final AdjustmentType PERCENT_CHANGE_IN_CAPACITY
The number must be between -100 and 100; a positive number increases capacity and a negative number decreases it.
@Stability(value=Stable) public static final AdjustmentType EXACT_CAPACITY
public static AdjustmentType[] values()
for (AdjustmentType c : AdjustmentType.values()) System.out.println(c);
public static AdjustmentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.