Class PredictiveScalingMetricStat
- java.lang.Object
-
- software.amazon.awssdk.services.applicationautoscaling.model.PredictiveScalingMetricStat
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PredictiveScalingMetricStat.Builder,PredictiveScalingMetricStat>
@Generated("software.amazon.awssdk:codegen") public final class PredictiveScalingMetricStat extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PredictiveScalingMetricStat.Builder,PredictiveScalingMetricStat>
This structure defines the CloudWatch metric to return, along with the statistic and unit.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePredictiveScalingMetricStat.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PredictiveScalingMetricStat.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()PredictiveScalingMetricmetric()The CloudWatch metric to return, including the metric name, namespace, and dimensions.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PredictiveScalingMetricStat.Builder>serializableBuilderClass()Stringstat()The statistic to return.PredictiveScalingMetricStat.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringunit()The unit to use for the returned data points.-
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
-
metric
public final PredictiveScalingMetric metric()
The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
- Returns:
- The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
-
stat
public final String stat()
The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.
The most commonly used metrics for predictive scaling are
AverageandSum.- Returns:
- The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of
valid values, see the table in Statistics in the Amazon CloudWatch User Guide.
The most commonly used metrics for predictive scaling are
AverageandSum.
-
unit
public final String unit()
The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
- Returns:
- The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
-
toBuilder
public PredictiveScalingMetricStat.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PredictiveScalingMetricStat.Builder,PredictiveScalingMetricStat>
-
builder
public static PredictiveScalingMetricStat.Builder builder()
-
serializableBuilderClass
public static Class<? extends PredictiveScalingMetricStat.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
-
-