@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CurrentMetric extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a real-time metric. For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator Guide.
Constructor and Description |
---|
CurrentMetric() |
Modifier and Type | Method and Description |
---|---|
CurrentMetric |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the metric.
|
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 |
setUnit(String unit)
The unit for the metric.
|
String |
toString()
Returns a string representation of this object.
|
CurrentMetric |
withName(CurrentMetricName name)
The name of the metric.
|
CurrentMetric |
withName(String name)
The name of the metric.
|
CurrentMetric |
withUnit(String unit)
The unit for the metric.
|
CurrentMetric |
withUnit(Unit unit)
The unit for the metric.
|
public void setName(String name)
The name of the metric.
name
- The name of the metric.CurrentMetricName
public String getName()
The name of the metric.
CurrentMetricName
public CurrentMetric withName(String name)
The name of the metric.
name
- The name of the metric.CurrentMetricName
public CurrentMetric withName(CurrentMetricName name)
The name of the metric.
name
- The name of the metric.CurrentMetricName
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 CurrentMetric withUnit(String unit)
The unit for the metric.
unit
- The unit for the metric.Unit
public CurrentMetric 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 CurrentMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.