public DescribeAutoPredictorResult withForecastDimensions(String... forecastDimensions) {
        if (this.forecastDimensions == null) {
            setForecastDimensions(new java.util.ArrayList<String>(forecastDimensions.length));
        }
        for (String ele : forecastDimensions) {
            this.forecastDimensions.add(ele);
        }
        return this;
    }
<p>
An array of dimension (field) names that specify the attributes used to group your time series.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setForecastDimensions(java.util.Collection)} or {@link #withForecastDimensions(java.util.Collection)} if
you want to override the existing values.
</p>

@param forecastDimensions
       An array of dimension (field) names that specify the attributes used to group your time series.
@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