public GetApplicationDateRangeKpiRequest withEndTime(java.util.Date endTime) {
        setEndTime(endTime);
        return this;
    }
<p>
The last date and time to retrieve data for, as part of an inclusive date range that filters the query results.
This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example:
2019-07-26T20:00:00Z for 8:00 PM UTC July 26, 2019.
</p>

@param endTime
       The last date and time to retrieve data for, as part of an inclusive date range that filters the query
       results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for
       example: 2019-07-26T20:00:00Z for 8:00 PM UTC July 26, 2019.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/GetApplicationDateRangeKpiRequest.java