public TimeRange withEndTime(java.util.Date endTime) {
        setEndTime(endTime);
        return this;
    }
<p>
The Unix timestamp for the end of the time range.
</p>

@param endTime
       The Unix timestamp for the end of the time range.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/TimeRange.java