@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataPoint extends Object implements Serializable, Cloneable, StructuredPojo
A timestamp, and a single numerical value, which together represent a measurement at a particular point in time.
| Constructor and Description |
|---|
DataPoint() |
| Modifier and Type | Method and Description |
|---|---|
DataPoint |
clone() |
boolean |
equals(Object obj) |
Date |
getTimestamp()
The time, in epoch format, associated with a particular
Value. |
Double |
getValue()
The actual value associated with a particular
Timestamp. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setTimestamp(Date timestamp)
The time, in epoch format, associated with a particular
Value. |
void |
setValue(Double value)
The actual value associated with a particular
Timestamp. |
String |
toString()
Returns a string representation of this object.
|
DataPoint |
withTimestamp(Date timestamp)
The time, in epoch format, associated with a particular
Value. |
DataPoint |
withValue(Double value)
The actual value associated with a particular
Timestamp. |
public void setTimestamp(Date timestamp)
The time, in epoch format, associated with a particular Value.
timestamp - The time, in epoch format, associated with a particular Value.public Date getTimestamp()
The time, in epoch format, associated with a particular Value.
Value.public DataPoint withTimestamp(Date timestamp)
The time, in epoch format, associated with a particular Value.
timestamp - The time, in epoch format, associated with a particular Value.public void setValue(Double value)
The actual value associated with a particular Timestamp.
value - The actual value associated with a particular Timestamp.public Double getValue()
The actual value associated with a particular Timestamp.
Timestamp.public DataPoint withValue(Double value)
The actual value associated with a particular Timestamp.
value - The actual value associated with a particular Timestamp.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.