public EventFilter withEndTimes(DateTimeRange... endTimes) {
        if (this.endTimes == null) {
            setEndTimes(new java.util.ArrayList<DateTimeRange>(endTimes.length));
        }
        for (DateTimeRange ele : endTimes) {
            this.endTimes.add(ele);
        }
        return this;
    }
<p>
A list of dates and times that the event ended.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEndTimes(java.util.Collection)} or {@link #withEndTimes(java.util.Collection)} if you want to override
the existing values.
</p>

@param endTimes
       A list of dates and times that the event ended.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-health/src/main/java/com/amazonaws/services/health/model/EventFilter.java