public EntityFilter withStatusCodes(EntityStatusCode... statusCodes) {
        java.util.ArrayList<String> statusCodesCopy = new java.util.ArrayList<String>(statusCodes.length);
        for (EntityStatusCode value : statusCodes) {
            statusCodesCopy.add(value.toString());
        }
        if (getStatusCodes() == null) {
            setStatusCodes(statusCodesCopy);
        } else {
            getStatusCodes().addAll(statusCodesCopy);
        }
        return this;
    }
<p>
A list of entity status codes (<code>IMPAIRED</code>, <code>UNIMPAIRED</code>, or <code>UNKNOWN</code>).
</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