@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetTrackingMetricStat extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
TargetTrackingMetricStat() |
Modifier and Type | Method and Description |
---|---|
TargetTrackingMetricStat |
clone() |
boolean |
equals(Object obj) |
Metric |
getMetric()
The metric to use.
|
String |
getStat()
The statistic to return.
|
String |
getUnit()
The unit to use for the returned data points.
|
int |
hashCode() |
void |
setMetric(Metric metric)
The metric to use.
|
void |
setStat(String stat)
The statistic to return.
|
void |
setUnit(String unit)
The unit to use for the returned data points.
|
String |
toString()
Returns a string representation of this object.
|
TargetTrackingMetricStat |
withMetric(Metric metric)
The metric to use.
|
TargetTrackingMetricStat |
withStat(String stat)
The statistic to return.
|
TargetTrackingMetricStat |
withUnit(String unit)
The unit to use for the returned data points.
|
public void setMetric(Metric metric)
The metric to use.
metric
- The metric to use.public Metric getMetric()
The metric to use.
public TargetTrackingMetricStat withMetric(Metric metric)
The metric to use.
metric
- The metric to use.public void setStat(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
.
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
.
public String getStat()
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
.
The most commonly used metric for scaling is Average
.
public TargetTrackingMetricStat withStat(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
.
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
.
public void setUnit(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.
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.public String getUnit()
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.
public TargetTrackingMetricStat withUnit(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.
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.public String toString()
toString
in class Object
Object.toString()
public TargetTrackingMetricStat clone()