public DateInterval withEnd(String end) {
        setEnd(end);
        return this;
    }
<p>
The end of the time period. The end date is exclusive. For example, if <code>end</code> is
<code>2017-05-01</code>, Amazon Web Services retrieves cost and usage data from the start date up to, but not
including, <code>2017-05-01</code>.
</p>

@param end
       The end of the time period. The end date is exclusive. For example, if <code>end</code> is
       <code>2017-05-01</code>, Amazon Web Services retrieves cost and usage data from the start date up to, but
       not including, <code>2017-05-01</code>.
@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/DateInterval.java