@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HistoricalMetric extends Object implements Serializable, Cloneable, StructuredPojo
A HistoricalMetric object that contains the Name, Unit, Statistic, and Threshold for the metric.
| Constructor and Description |
|---|
HistoricalMetric() |
| Modifier and Type | Method and Description |
|---|---|
HistoricalMetric |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the historical metric.
|
String |
getStatistic()
The statistic for the metric.
|
Threshold |
getThreshold()
The threshold for the metric, used with service level metrics.
|
String |
getUnit()
The unit for the metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setName(String name)
The name of the historical metric.
|
void |
setStatistic(String statistic)
The statistic for the metric.
|
void |
setThreshold(Threshold threshold)
The threshold for the metric, used with service level metrics.
|
void |
setUnit(String unit)
The unit for the metric.
|
String |
toString()
Returns a string representation of this object.
|
HistoricalMetric |
withName(HistoricalMetricName name)
The name of the historical metric.
|
HistoricalMetric |
withName(String name)
The name of the historical metric.
|
HistoricalMetric |
withStatistic(Statistic statistic)
The statistic for the metric.
|
HistoricalMetric |
withStatistic(String statistic)
The statistic for the metric.
|
HistoricalMetric |
withThreshold(Threshold threshold)
The threshold for the metric, used with service level metrics.
|
HistoricalMetric |
withUnit(String unit)
The unit for the metric.
|
HistoricalMetric |
withUnit(Unit unit)
The unit for the metric.
|
public void setName(String name)
The name of the historical metric.
name - The name of the historical metric.HistoricalMetricNamepublic String getName()
The name of the historical metric.
HistoricalMetricNamepublic HistoricalMetric withName(String name)
The name of the historical metric.
name - The name of the historical metric.HistoricalMetricNamepublic HistoricalMetric withName(HistoricalMetricName name)
The name of the historical metric.
name - The name of the historical metric.HistoricalMetricNamepublic void setThreshold(Threshold threshold)
The threshold for the metric, used with service level metrics.
threshold - The threshold for the metric, used with service level metrics.public Threshold getThreshold()
The threshold for the metric, used with service level metrics.
public HistoricalMetric withThreshold(Threshold threshold)
The threshold for the metric, used with service level metrics.
threshold - The threshold for the metric, used with service level metrics.public void setStatistic(String statistic)
The statistic for the metric.
statistic - The statistic for the metric.Statisticpublic String getStatistic()
The statistic for the metric.
Statisticpublic HistoricalMetric withStatistic(String statistic)
The statistic for the metric.
statistic - The statistic for the metric.Statisticpublic HistoricalMetric withStatistic(Statistic statistic)
The statistic for the metric.
statistic - The statistic for the metric.Statisticpublic void setUnit(String unit)
The unit for the metric.
unit - The unit for the metric.Unitpublic String getUnit()
The unit for the metric.
Unitpublic HistoricalMetric withUnit(String unit)
The unit for the metric.
unit - The unit for the metric.Unitpublic HistoricalMetric withUnit(Unit unit)
The unit for the metric.
unit - The unit for the metric.Unitpublic String toString()
toString in class ObjectObject.toString()public HistoricalMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.