@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetTrackingMetricStat extends Object implements Serializable, Cloneable, StructuredPojo
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) |
TargetTrackingMetric |
getMetric()
The CloudWatch metric to return, including the metric name, namespace, and dimensions.
|
String |
getStat()
The statistic to return.
|
String |
getUnit()
The unit to use for the returned data points.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetric(TargetTrackingMetric metric)
The CloudWatch metric to return, including the metric name, namespace, and dimensions.
|
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(TargetTrackingMetric metric)
The CloudWatch metric to return, including the metric name, namespace, and dimensions.
|
TargetTrackingMetricStat |
withStat(String stat)
The statistic to return.
|
TargetTrackingMetricStat |
withUnit(String unit)
The unit to use for the returned data points.
|
public void setMetric(TargetTrackingMetric 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.
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.public TargetTrackingMetric getMetric()
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.
public TargetTrackingMetricStat withMetric(TargetTrackingMetric 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.
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.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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.