/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.autoscaling.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* 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.
*
* The timestamps for the data points, in UTC format. *
*/ private com.amazonaws.internal.SdkInternalList* The values of the data points. *
*/ private com.amazonaws.internal.SdkInternalList* The timestamps for the data points, in UTC format. *
* * @return The timestamps for the data points, in UTC format. */ public java.util.List* The timestamps for the data points, in UTC format. *
* * @param timestamps * The timestamps for the data points, in UTC format. */ public void setTimestamps(java.util.Collection* The timestamps for the data points, in UTC format. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTimestamps(java.util.Collection)} or {@link #withTimestamps(java.util.Collection)} if you want to * override the existing values. *
* * @param timestamps * The timestamps for the data points, in UTC format. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityForecast withTimestamps(java.util.Date... timestamps) { if (this.timestamps == null) { setTimestamps(new com.amazonaws.internal.SdkInternalList* The timestamps for the data points, in UTC format. *
* * @param timestamps * The timestamps for the data points, in UTC format. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityForecast withTimestamps(java.util.Collection* The values of the data points. *
* * @return The values of the data points. */ public java.util.List* The values of the data points. *
* * @param values * The values of the data points. */ public void setValues(java.util.Collection* The values of the data points. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setValues(java.util.Collection)} or {@link #withValues(java.util.Collection)} if you want to override the * existing values. *
* * @param values * The values of the data points. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityForecast withValues(Double... values) { if (this.values == null) { setValues(new com.amazonaws.internal.SdkInternalList* The values of the data points. *
* * @param values * The values of the data points. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityForecast withValues(java.util.Collection