Enum AdjustmentType
java.lang.Object
java.lang.Enum<AdjustmentType>
software.amazon.awscdk.services.applicationautoscaling.AdjustmentType
- All Implemented Interfaces:
Serializable
,Comparable<AdjustmentType>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.320Z")
@Stability(Stable)
public enum AdjustmentType
extends Enum<AdjustmentType>
How adjustment numbers are interpreted.
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());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdd the adjustment number to the current capacity.Make the capacity equal to the exact number given.Add this percentage of the current capacity to itself. -
Method Summary
Modifier and TypeMethodDescriptionstatic AdjustmentType
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.
-
Enum Constant Details
-
CHANGE_IN_CAPACITY
Add the adjustment number to the current capacity.A positive number increases capacity, a negative number decreases capacity.
-
PERCENT_CHANGE_IN_CAPACITY
Add this percentage of the current capacity to itself.The number must be between -100 and 100; a positive number increases capacity and a negative number decreases it.
-
EXACT_CAPACITY
Make the capacity equal to the exact number given.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-