public TimeWindow withEndTime(java.util.Date endTime) {
        setEndTime(endTime);
        return this;
    }
<p>
The end of the time range from which you want <code>GetSampledRequests</code> to return a sample of the requests
that your AWS resource received. You must specify the date and time in Coordinated Universal Time (UTC) format.
UTC format includes the special designator, <code>Z</code>. For example, <code>"2016-09-27T14:50Z"</code>. You
can specify any time range in the previous three hours.
</p>

@param endTime
       The end of the time range from which you want <code>GetSampledRequests</code> to return a sample of the
       requests that your AWS resource received. You must specify the date and time in Coordinated Universal Time
       (UTC) format. UTC format includes the special designator, <code>Z</code>. For example,
       <code>"2016-09-27T14:50Z"</code>. You can specify any time range in the previous three hours.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-waf/src/main/java/com/amazonaws/services/waf/model/TimeWindow.java