@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricDatum extends Object implements Serializable, Cloneable, StructuredPojo
A metric.
| Constructor and Description |
|---|
MetricDatum() |
| Modifier and Type | Method and Description |
|---|---|
MetricDatum |
clone() |
boolean |
equals(Object obj) |
Date |
getTimestamp()
The time the metric value was reported.
|
MetricValue |
getValue()
The value reported for the metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setTimestamp(Date timestamp)
The time the metric value was reported.
|
void |
setValue(MetricValue value)
The value reported for the metric.
|
String |
toString()
Returns a string representation of this object.
|
MetricDatum |
withTimestamp(Date timestamp)
The time the metric value was reported.
|
MetricDatum |
withValue(MetricValue value)
The value reported for the metric.
|
public void setTimestamp(Date timestamp)
The time the metric value was reported.
timestamp - The time the metric value was reported.public Date getTimestamp()
The time the metric value was reported.
public MetricDatum withTimestamp(Date timestamp)
The time the metric value was reported.
timestamp - The time the metric value was reported.public void setValue(MetricValue value)
The value reported for the metric.
value - The value reported for the metric.public MetricValue getValue()
The value reported for the metric.
public MetricDatum withValue(MetricValue value)
The value reported for the metric.
value - The value reported for the metric.public String toString()
toString in class ObjectObject.toString()public MetricDatum clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.