public EventFilter withEventStatusCodes(String... eventStatusCodes) {
        if (this.eventStatusCodes == null) {
            setEventStatusCodes(new java.util.ArrayList<String>(eventStatusCodes.length));
        }
        for (String ele : eventStatusCodes) {
            this.eventStatusCodes.add(ele);
        }
        return this;
    }
<p>
A list of event status codes.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEventStatusCodes(java.util.Collection)} or {@link #withEventStatusCodes(java.util.Collection)} if you
want to override the existing values.
</p>

@param eventStatusCodes
       A list of event status codes.
@return Returns a reference to this object so that method calls can be chained together.
@see EventStatusCode
aws-java-sdk-health/src/main/java/com/amazonaws/services/health/model/EventFilter.java