public EntityFilter withStatusCodes(String... statusCodes) {
        if (this.statusCodes == null) {
            setStatusCodes(new java.util.ArrayList<String>(statusCodes.length));
        }
        for (String ele : statusCodes) {
            this.statusCodes.add(ele);
        }
        return this;
    }
<p>
A list of entity status codes (<code>IMPAIRED</code>, <code>UNIMPAIRED</code>, or <code>UNKNOWN</code>).
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setStatusCodes(java.util.Collection)} or {@link #withStatusCodes(java.util.Collection)} if you want to
override the existing values.
</p>

@param statusCodes
       A list of entity status codes (<code>IMPAIRED</code>, <code>UNIMPAIRED</code>, or <code>UNKNOWN</code>).
@return Returns a reference to this object so that method calls can be chained together.
@see EntityStatusCode
aws-java-sdk-health/src/main/java/com/amazonaws/services/health/model/EntityFilter.java