@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricStat extends Object implements Serializable, Cloneable
This structure defines the metric to be returned, along with the statistics, period, and units.
Constructor and Description |
---|
MetricStat() |
Modifier and Type | Method and Description |
---|---|
MetricStat |
clone() |
boolean |
equals(Object obj) |
Metric |
getMetric()
The metric to return, including the metric name, namespace, and dimensions.
|
Integer |
getPeriod()
The period to use when retrieving the metric.
|
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 return, including the metric name, namespace, and dimensions.
|
void |
setPeriod(Integer period)
The period to use when retrieving the metric.
|
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; useful for testing and debugging.
|
MetricStat |
withMetric(Metric metric)
The metric to return, including the metric name, namespace, and dimensions.
|
MetricStat |
withPeriod(Integer period)
The period to use when retrieving the metric.
|
MetricStat |
withStat(String stat)
The statistic to return.
|
MetricStat |
withUnit(StandardUnit unit)
The unit to use for the returned data points.
|
MetricStat |
withUnit(String unit)
The unit to use for the returned data points.
|
public void setMetric(Metric metric)
The metric to return, including the metric name, namespace, and dimensions.
metric
- The metric to return, including the metric name, namespace, and dimensions.public Metric getMetric()
The metric to return, including the metric name, namespace, and dimensions.
public MetricStat withMetric(Metric metric)
The metric to return, including the metric name, namespace, and dimensions.
metric
- The metric to return, including the metric name, namespace, and dimensions.public void setPeriod(Integer period)
The period to use when retrieving the metric.
period
- The period to use when retrieving the metric.public Integer getPeriod()
The period to use when retrieving the metric.
public MetricStat withPeriod(Integer period)
The period to use when retrieving the metric.
period
- The period to use when retrieving the metric.public void setStat(String stat)
The statistic to return. It can include any CloudWatch statistic or extended statistic.
stat
- The statistic to return. It can include any CloudWatch statistic or extended statistic.public String getStat()
The statistic to return. It can include any CloudWatch statistic or extended statistic.
public MetricStat withStat(String stat)
The statistic to return. It can include any CloudWatch statistic or extended statistic.
stat
- The statistic to return. It can include any CloudWatch statistic or extended statistic.public void setUnit(String unit)
The unit to use for the returned data points.
unit
- The unit to use for the returned data points.StandardUnit
public String getUnit()
The unit to use for the returned data points.
StandardUnit
public MetricStat withUnit(String unit)
The unit to use for the returned data points.
unit
- The unit to use for the returned data points.StandardUnit
public MetricStat withUnit(StandardUnit unit)
The unit to use for the returned data points.
unit
- The unit to use for the returned data points.StandardUnit
public String toString()
toString
in class Object
Object.toString()
public MetricStat clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.