@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacityForecast extends Object implements Serializable, Cloneable
A GetPredictiveScalingForecast
call returns the capacity forecast for a predictive scaling policy. This
structure includes the data points for that capacity forecast, along with the timestamps of those data points.
Constructor and Description |
---|
CapacityForecast() |
Modifier and Type | Method and Description |
---|---|
CapacityForecast |
clone() |
boolean |
equals(Object obj) |
List<Date> |
getTimestamps()
The timestamps for the data points, in UTC format.
|
List<Double> |
getValues()
The values of the data points.
|
int |
hashCode() |
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.
|
CapacityForecast |
withTimestamps(Collection<Date> timestamps)
The timestamps for the data points, in UTC format.
|
CapacityForecast |
withTimestamps(Date... timestamps)
The timestamps for the data points, in UTC format.
|
CapacityForecast |
withValues(Collection<Double> values)
The values of the data points.
|
CapacityForecast |
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 CapacityForecast 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 CapacityForecast 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 CapacityForecast 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 CapacityForecast withValues(Collection<Double> values)
The values of the data points.
values
- The values of the data points.public String toString()
toString
in class Object
Object.toString()
public CapacityForecast clone()