public Range withEndTime(java.util.Date endTime) {
        setEndTime(endTime);
        return this;
    }
<p>
The end time of the range to exclude. The format is <code>yyyy-MM-dd'T'HH:mm:ss</code>. For example,
<code>2019-07-01T23:59:59</code>.
</p>

@param endTime
       The end time of the range to exclude. The format is <code>yyyy-MM-dd'T'HH:mm:ss</code>. For example,
       <code>2019-07-01T23:59:59</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/Range.java