@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Datapoint extends Object implements Serializable, Cloneable, StructuredPojo
Represents a single value in the forecast data used for predictive scaling.
Constructor and Description |
---|
Datapoint() |
Modifier and Type | Method and Description |
---|---|
Datapoint |
clone() |
boolean |
equals(Object obj) |
Date |
getTimestamp()
The time stamp for the data point in UTC format.
|
Double |
getValue()
The value of the data point.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTimestamp(Date timestamp)
The time stamp for the data point in UTC format.
|
void |
setValue(Double value)
The value of the data point.
|
String |
toString()
Returns a string representation of this object.
|
Datapoint |
withTimestamp(Date timestamp)
The time stamp for the data point in UTC format.
|
Datapoint |
withValue(Double value)
The value of the data point.
|
public void setTimestamp(Date timestamp)
The time stamp for the data point in UTC format.
timestamp
- The time stamp for the data point in UTC format.public Date getTimestamp()
The time stamp for the data point in UTC format.
public Datapoint withTimestamp(Date timestamp)
The time stamp for the data point in UTC format.
timestamp
- The time stamp for the data point in UTC format.public void setValue(Double value)
The value of the data point.
value
- The value of the data point.public Double getValue()
The value of the data point.
public Datapoint withValue(Double value)
The value of the data point.
value
- The value of the data point.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.