@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CurrentMetric extends Object implements Serializable, Cloneable, StructuredPojo
A CurrentMetric object that contains the Name and Unit for the metric.
| 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.CurrentMetricNamepublic String getName()
The name of the metric.
CurrentMetricNamepublic CurrentMetric withName(String name)
The name of the metric.
name - The name of the metric.CurrentMetricNamepublic CurrentMetric withName(CurrentMetricName name)
The name of the metric.
name - The name of the metric.CurrentMetricNamepublic void setUnit(String unit)
The unit for the metric.
unit - The unit for the metric.Unitpublic String getUnit()
The unit for the metric.
Unitpublic CurrentMetric withUnit(String unit)
The unit for the metric.
unit - The unit for the metric.Unitpublic CurrentMetric withUnit(Unit unit)
The unit for the metric.
unit - The unit for the metric.Unitpublic String toString()
toString in class ObjectObject.toString()public CurrentMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.