public DescribeAutoPredictorResult withForecastHorizon(Integer forecastHorizon) {
        setForecastHorizon(forecastHorizon);
        return this;
    }
<p>
The number of time-steps that the model predicts. The forecast horizon is also called the prediction length.
</p>

@param forecastHorizon
       The number of time-steps that the model predicts. The forecast horizon is also called the prediction
       length.
@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