@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:41.382Z") public enum AdjustmentType extends java.lang.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(java.lang.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.
|
public static final AdjustmentType CHANGE_IN_CAPACITY
A positive number increases capacity, a negative number decreases capacity.
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.
public static final AdjustmentType EXACT_CAPACITY
public static AdjustmentType[] values()
for (AdjustmentType c : AdjustmentType.values()) System.out.println(c);
public static AdjustmentType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null