public BatchGetMetricDataQuery withEndDate(java.util.Date endDate) {
        setEndDate(endDate);
        return this;
    }
<p>
Represents the end date for the query interval.
</p>

@param endDate
       Represents the end date for the query interval.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sesv2/src/main/java/com/amazonaws/services/simpleemailv2/model/BatchGetMetricDataQuery.java