public GetUsageForecastRequest withTimePeriod(DateInterval timePeriod) {
        setTimePeriod(timePeriod);
        return this;
    }
<p>
The start and end dates of the period that you want to retrieve usage forecast for. The start date is included in
the period, but the end date isn't included in the period. For example, if <code>start</code> is
<code>2017-01-01</code> and <code>end</code> is <code>2017-05-01</code>, then the cost and usage data is
retrieved from <code>2017-01-01</code> up to and including <code>2017-04-30</code> but not including
<code>2017-05-01</code>. The start date must be equal to or later than the current date to avoid a validation
error.
</p>

@param timePeriod
       The start and end dates of the period that you want to retrieve usage forecast for. The start date is
       included in the period, but the end date isn't included in the period. For example, if <code>start</code>
       is <code>2017-01-01</code> and <code>end</code> is <code>2017-05-01</code>, then the cost and usage data
       is retrieved from <code>2017-01-01</code> up to and including <code>2017-04-30</code> but not including
       <code>2017-05-01</code>. The start date must be equal to or later than the current date to avoid a
       validation error.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-costexplorer/src/main/java/com/amazonaws/services/costexplorer/model/GetUsageForecastRequest.java