public DescribeAutoPredictorResult withForecastTypes(String... forecastTypes) {
        if (this.forecastTypes == null) {
            setForecastTypes(new java.util.ArrayList<String>(forecastTypes.length));
        }
        for (String ele : forecastTypes) {
            this.forecastTypes.add(ele);
        }
        return this;
    }
<p>
The forecast types used during predictor training. Default value is ["0.1","0.5","0.9"].
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setForecastTypes(java.util.Collection)} or {@link #withForecastTypes(java.util.Collection)} if you want
to override the existing values.
</p>

@param forecastTypes
       The forecast types used during predictor training. Default value is ["0.1","0.5","0.9"].
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-forecast/src/main/java/com/amazonaws/services/forecast/model/DescribeAutoPredictorResult.java