Class PredictiveScalingMetricSpecification
- java.lang.Object
-
- software.amazon.awssdk.services.applicationautoscaling.model.PredictiveScalingMetricSpecification
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PredictiveScalingMetricSpecification.Builder,PredictiveScalingMetricSpecification>
@Generated("software.amazon.awssdk:codegen") public final class PredictiveScalingMetricSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PredictiveScalingMetricSpecification.Builder,PredictiveScalingMetricSpecification>
This structure specifies the metrics and target utilization settings for a predictive scaling policy.
You must specify either a metric pair, or a load metric and a scaling metric individually. Specifying a metric pair instead of individual metrics provides a simpler way to configure metrics for a scaling policy. You choose the metric pair, and the policy automatically knows the correct sum and average statistics to use for the load metric and the scaling metric.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePredictiveScalingMetricSpecification.Builder
-
Method Summary
-
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
-
targetValue
public final Double targetValue()
Specifies the target utilization.
- Returns:
- Specifies the target utilization.
-
predefinedMetricPairSpecification
public final PredictiveScalingPredefinedMetricPairSpecification predefinedMetricPairSpecification()
The predefined metric pair specification that determines the appropriate scaling metric and load metric to use.
- Returns:
- The predefined metric pair specification that determines the appropriate scaling metric and load metric to use.
-
predefinedScalingMetricSpecification
public final PredictiveScalingPredefinedScalingMetricSpecification predefinedScalingMetricSpecification()
The predefined scaling metric specification.
- Returns:
- The predefined scaling metric specification.
-
predefinedLoadMetricSpecification
public final PredictiveScalingPredefinedLoadMetricSpecification predefinedLoadMetricSpecification()
The predefined load metric specification.
- Returns:
- The predefined load metric specification.
-
customizedScalingMetricSpecification
public final PredictiveScalingCustomizedMetricSpecification customizedScalingMetricSpecification()
The customized scaling metric specification.
- Returns:
- The customized scaling metric specification.
-
customizedLoadMetricSpecification
public final PredictiveScalingCustomizedMetricSpecification customizedLoadMetricSpecification()
The customized load metric specification.
- Returns:
- The customized load metric specification.
-
customizedCapacityMetricSpecification
public final PredictiveScalingCustomizedMetricSpecification customizedCapacityMetricSpecification()
The customized capacity metric specification.
- Returns:
- The customized capacity metric specification.
-
toBuilder
public PredictiveScalingMetricSpecification.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PredictiveScalingMetricSpecification.Builder,PredictiveScalingMetricSpecification>
-
builder
public static PredictiveScalingMetricSpecification.Builder builder()
-
serializableBuilderClass
public static Class<? extends PredictiveScalingMetricSpecification.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
-
-