@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HistoricalMetric extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a historical metric. For a description of each metric, see Historical Metrics Definitions in the Amazon Connect Administrator Guide.
| Constructor and Description |
|---|
HistoricalMetric() |
| Modifier and Type | Method and Description |
|---|---|
HistoricalMetric |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the 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)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
The name of the 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 metric.
|
HistoricalMetric |
withName(String name)
The name of the 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 metric.
name - The name of the metric.HistoricalMetricNamepublic String getName()
The name of the metric.
HistoricalMetricNamepublic HistoricalMetric withName(String name)
The name of the metric.
name - The name of the metric.HistoricalMetricNamepublic HistoricalMetric withName(HistoricalMetricName name)
The name of the metric.
name - The name of the 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)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.