@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.HistoricalMetricName
public String getName()
The name of the metric.
HistoricalMetricName
public HistoricalMetric withName(String name)
The name of the metric.
name
- The name of the metric.HistoricalMetricName
public HistoricalMetric withName(HistoricalMetricName name)
The name of the metric.
name
- The name of the metric.HistoricalMetricName
public 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.Statistic
public String getStatistic()
The statistic for the metric.
Statistic
public HistoricalMetric withStatistic(String statistic)
The statistic for the metric.
statistic
- The statistic for the metric.Statistic
public HistoricalMetric withStatistic(Statistic statistic)
The statistic for the metric.
statistic
- The statistic for the metric.Statistic
public void setUnit(String unit)
The unit for the metric.
unit
- The unit for the metric.Unit
public String getUnit()
The unit for the metric.
Unit
public HistoricalMetric withUnit(String unit)
The unit for the metric.
unit
- The unit for the metric.Unit
public HistoricalMetric withUnit(Unit unit)
The unit for the metric.
unit
- The unit for the metric.Unit
public String toString()
toString
in class Object
Object.toString()
public HistoricalMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.