Class NotScaledReason
- java.lang.Object
-
- software.amazon.awssdk.services.applicationautoscaling.model.NotScaledReason
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<NotScaledReason.Builder,NotScaledReason>
@Generated("software.amazon.awssdk:codegen") public final class NotScaledReason extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NotScaledReason.Builder,NotScaledReason>
Describes the reason for an activity that isn't scaled (not scaled activity), in machine-readable format. For help interpreting the not scaled reason details, see Scaling activities for Application Auto Scaling in the Application Auto Scaling User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNotScaledReason.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NotScaledReason.Builderbuilder()Stringcode()A code that represents the reason for not scaling.IntegercurrentCapacity()The current capacity.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxCapacity()The maximum capacity.IntegerminCapacity()The minimum capacity.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends NotScaledReason.Builder>serializableBuilderClass()NotScaledReason.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
code
public final String code()
A code that represents the reason for not scaling.
Valid values:
-
AutoScalingAnticipatedFlapping
-
TargetServicePutResourceAsUnscalable
-
AlreadyAtMaxCapacity
-
AlreadyAtMinCapacity
-
AlreadyAtDesiredCapacity
- Returns:
- A code that represents the reason for not scaling.
Valid values:
-
AutoScalingAnticipatedFlapping
-
TargetServicePutResourceAsUnscalable
-
AlreadyAtMaxCapacity
-
AlreadyAtMinCapacity
-
AlreadyAtDesiredCapacity
-
-
-
maxCapacity
public final Integer maxCapacity()
The maximum capacity.
- Returns:
- The maximum capacity.
-
minCapacity
public final Integer minCapacity()
The minimum capacity.
- Returns:
- The minimum capacity.
-
currentCapacity
public final Integer currentCapacity()
The current capacity.
- Returns:
- The current capacity.
-
toBuilder
public NotScaledReason.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<NotScaledReason.Builder,NotScaledReason>
-
builder
public static NotScaledReason.Builder builder()
-
serializableBuilderClass
public static Class<? extends NotScaledReason.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-