public StartTimeRange withToTime(java.util.Date toTime) {
        setToTime(toTime);
        return this;
    }
<p>
The end time of the time range.
</p>

@param toTime
       The end time of the time range.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-devopsguru/src/main/java/com/amazonaws/services/devopsguru/model/StartTimeRange.java