public DescribeEventsRequest withEndTime(java.util.Date endTime) {
        setEndTime(endTime);
        return this;
    }
<p>
The end of the time interval for which to retrieve events, specified in ISO 8601 format.
</p>
<p>
Example: 2009-07-08T18:00Z
</p>

@param endTime
       The end of the time interval for which to retrieve events, specified in ISO 8601 format. </p>
       <p>
       Example: 2009-07-08T18:00Z
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-docdb/src/main/java/com/amazonaws/services/docdb/model/DescribeEventsRequest.java