Class TargetTrackingMetricStat
- java.lang.Object
-
- software.amazon.awssdk.services.autoscaling.model.TargetTrackingMetricStat
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<TargetTrackingMetricStat.Builder,TargetTrackingMetricStat>
@Generated("software.amazon.awssdk:codegen") public final class TargetTrackingMetricStat extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetTrackingMetricStat.Builder,TargetTrackingMetricStat>
This structure defines the CloudWatch metric to return, along with the statistic and unit.
For more information about the CloudWatch terminology below, see Amazon CloudWatch concepts in the Amazon CloudWatch User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TargetTrackingMetricStat.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetTrackingMetricStat.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Metric
metric()
The metric to use.List<SdkField<?>>
sdkFields()
static Class<? extends TargetTrackingMetricStat.Builder>
serializableBuilderClass()
String
stat()
The statistic to return.TargetTrackingMetricStat.Builder
toBuilder()
String
toString()
Returns a string representation of this object.String
unit()
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 Metric metric()
The metric to use.
- Returns:
- The metric to use.
-
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 metric for scaling is
Average
.- 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 metric for scaling is
Average
.
-
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 TargetTrackingMetricStat.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<TargetTrackingMetricStat.Builder,TargetTrackingMetricStat>
-
builder
public static TargetTrackingMetricStat.Builder builder()
-
serializableBuilderClass
public static Class<? extends TargetTrackingMetricStat.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
-