public GetScalingPlanResourceForecastDataResult withDatapoints(Datapoint... datapoints) {
        if (this.datapoints == null) {
            setDatapoints(new java.util.ArrayList<Datapoint>(datapoints.length));
        }
        for (Datapoint ele : datapoints) {
            this.datapoints.add(ele);
        }
        return this;
    }
<p>
The data points to return.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDatapoints(java.util.Collection)} or {@link #withDatapoints(java.util.Collection)} if you want to
override the existing values.
</p>

@param datapoints
       The data points to return.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-autoscalingplans/src/main/java/com/amazonaws/services/autoscalingplans/model/GetScalingPlanResourceForecastDataResult.java