@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricData extends Object implements Serializable, Cloneable, StructuredPojo
The name, value, and date and time of a metric that was emitted to Amazon CloudWatch.
Constructor and Description |
---|
MetricData() |
Modifier and Type | Method and Description |
---|---|
MetricData |
clone() |
boolean |
equals(Object obj) |
String |
getMetricName()
The name of the metric.
|
Date |
getTimestamp()
The date and time that the algorithm emitted the metric.
|
Float |
getValue()
The value of the metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetricName(String metricName)
The name of the metric.
|
void |
setTimestamp(Date timestamp)
The date and time that the algorithm emitted the metric.
|
void |
setValue(Float value)
The value of the metric.
|
String |
toString()
Returns a string representation of this object.
|
MetricData |
withMetricName(String metricName)
The name of the metric.
|
MetricData |
withTimestamp(Date timestamp)
The date and time that the algorithm emitted the metric.
|
MetricData |
withValue(Float value)
The value of the metric.
|
public void setMetricName(String metricName)
The name of the metric.
metricName
- The name of the metric.public String getMetricName()
The name of the metric.
public MetricData withMetricName(String metricName)
The name of the metric.
metricName
- The name of the metric.public void setValue(Float value)
The value of the metric.
value
- The value of the metric.public Float getValue()
The value of the metric.
public MetricData withValue(Float value)
The value of the metric.
value
- The value of the metric.public void setTimestamp(Date timestamp)
The date and time that the algorithm emitted the metric.
timestamp
- The date and time that the algorithm emitted the metric.public Date getTimestamp()
The date and time that the algorithm emitted the metric.
public MetricData withTimestamp(Date timestamp)
The date and time that the algorithm emitted the metric.
timestamp
- The date and time that the algorithm emitted the metric.public String toString()
toString
in class Object
Object.toString()
public MetricData clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.