@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricValue extends Object implements Serializable, Cloneable, StructuredPojo
The aggregated value for a metric.
Constructor and Description |
---|
MetricValue() |
Modifier and Type | Method and Description |
---|---|
MetricValue |
clone() |
boolean |
equals(Object obj) |
String |
getAmount()
The actual number that represents the metric.
|
String |
getUnit()
The unit that the metric is given in.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAmount(String amount)
The actual number that represents the metric.
|
void |
setUnit(String unit)
The unit that the metric is given in.
|
String |
toString()
Returns a string representation of this object.
|
MetricValue |
withAmount(String amount)
The actual number that represents the metric.
|
MetricValue |
withUnit(String unit)
The unit that the metric is given in.
|
public void setAmount(String amount)
The actual number that represents the metric.
amount
- The actual number that represents the metric.public String getAmount()
The actual number that represents the metric.
public MetricValue withAmount(String amount)
The actual number that represents the metric.
amount
- The actual number that represents the metric.public void setUnit(String unit)
The unit that the metric is given in.
unit
- The unit that the metric is given in.public String getUnit()
The unit that the metric is given in.
public MetricValue withUnit(String unit)
The unit that the metric is given in.
unit
- The unit that the metric is given in.public String toString()
toString
in class Object
Object.toString()
public MetricValue clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.