@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LoadForecast extends Object implements Serializable, Cloneable
A GetPredictiveScalingForecast
call returns the load forecast for a predictive scaling policy. This
structure includes the data points for that load forecast, along with the timestamps of those data points and the
metric specification.
Constructor and Description |
---|
LoadForecast() |
Modifier and Type | Method and Description |
---|---|
LoadForecast |
clone() |
boolean |
equals(Object obj) |
PredictiveScalingMetricSpecification |
getMetricSpecification()
The metric specification for the load forecast.
|
List<Date> |
getTimestamps()
The timestamps for the data points, in UTC format.
|
List<Double> |
getValues()
The values of the data points.
|
int |
hashCode() |
void |
setMetricSpecification(PredictiveScalingMetricSpecification metricSpecification)
The metric specification for the load forecast.
|
void |
setTimestamps(Collection<Date> timestamps)
The timestamps for the data points, in UTC format.
|
void |
setValues(Collection<Double> values)
The values of the data points.
|
String |
toString()
Returns a string representation of this object.
|
LoadForecast |
withMetricSpecification(PredictiveScalingMetricSpecification metricSpecification)
The metric specification for the load forecast.
|
LoadForecast |
withTimestamps(Collection<Date> timestamps)
The timestamps for the data points, in UTC format.
|
LoadForecast |
withTimestamps(Date... timestamps)
The timestamps for the data points, in UTC format.
|
LoadForecast |
withValues(Collection<Double> values)
The values of the data points.
|
LoadForecast |
withValues(Double... values)
The values of the data points.
|
public List<Date> getTimestamps()
The timestamps for the data points, in UTC format.
public void setTimestamps(Collection<Date> timestamps)
The timestamps for the data points, in UTC format.
timestamps
- The timestamps for the data points, in UTC format.public LoadForecast withTimestamps(Date... timestamps)
The timestamps for the data points, in UTC format.
NOTE: This method appends the values to the existing list (if any). Use
setTimestamps(java.util.Collection)
or withTimestamps(java.util.Collection)
if you want to
override the existing values.
timestamps
- The timestamps for the data points, in UTC format.public LoadForecast withTimestamps(Collection<Date> timestamps)
The timestamps for the data points, in UTC format.
timestamps
- The timestamps for the data points, in UTC format.public List<Double> getValues()
The values of the data points.
public void setValues(Collection<Double> values)
The values of the data points.
values
- The values of the data points.public LoadForecast withValues(Double... values)
The values of the data points.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- The values of the data points.public LoadForecast withValues(Collection<Double> values)
The values of the data points.
values
- The values of the data points.public void setMetricSpecification(PredictiveScalingMetricSpecification metricSpecification)
The metric specification for the load forecast.
metricSpecification
- The metric specification for the load forecast.public PredictiveScalingMetricSpecification getMetricSpecification()
The metric specification for the load forecast.
public LoadForecast withMetricSpecification(PredictiveScalingMetricSpecification metricSpecification)
The metric specification for the load forecast.
metricSpecification
- The metric specification for the load forecast.public String toString()
toString
in class Object
Object.toString()
public LoadForecast clone()