Class TargetTrackingScalingPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.lambda.model.TargetTrackingScalingPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TargetTrackingScalingPolicy.Builder,TargetTrackingScalingPolicy>
@Generated("software.amazon.awssdk:codegen") public final class TargetTrackingScalingPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetTrackingScalingPolicy.Builder,TargetTrackingScalingPolicy>
A scaling policy for the capacity provider that automatically adjusts capacity to maintain a target value for a specific metric.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTargetTrackingScalingPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetTrackingScalingPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()CapacityProviderPredefinedMetricTypepredefinedMetricType()The predefined metric type to track for scaling decisions.StringpredefinedMetricTypeAsString()The predefined metric type to track for scaling decisions.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TargetTrackingScalingPolicy.Builder>serializableBuilderClass()DoubletargetValue()The target value for the metric that the scaling policy attempts to maintain through scaling actions.TargetTrackingScalingPolicy.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
-
predefinedMetricType
public final CapacityProviderPredefinedMetricType predefinedMetricType()
The predefined metric type to track for scaling decisions.
If the service returns an enum value that is not available in the current SDK version,
predefinedMetricTypewill returnCapacityProviderPredefinedMetricType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompredefinedMetricTypeAsString().- Returns:
- The predefined metric type to track for scaling decisions.
- See Also:
CapacityProviderPredefinedMetricType
-
predefinedMetricTypeAsString
public final String predefinedMetricTypeAsString()
The predefined metric type to track for scaling decisions.
If the service returns an enum value that is not available in the current SDK version,
predefinedMetricTypewill returnCapacityProviderPredefinedMetricType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompredefinedMetricTypeAsString().- Returns:
- The predefined metric type to track for scaling decisions.
- See Also:
CapacityProviderPredefinedMetricType
-
targetValue
public final Double targetValue()
The target value for the metric that the scaling policy attempts to maintain through scaling actions.
- Returns:
- The target value for the metric that the scaling policy attempts to maintain through scaling actions.
-
toBuilder
public TargetTrackingScalingPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TargetTrackingScalingPolicy.Builder,TargetTrackingScalingPolicy>
-
builder
public static TargetTrackingScalingPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends TargetTrackingScalingPolicy.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
-
-