public AssessmentRunFilter withStates(String... states) {
        if (this.states == null) {
            setStates(new java.util.ArrayList<String>(states.length));
        }
        for (String ele : states) {
            this.states.add(ele);
        }
        return this;
    }
<p>
For a record to match a filter, one of the values specified for this data type property must be the exact match
of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setStates(java.util.Collection)} or {@link #withStates(java.util.Collection)} if you want to override the
existing values.
</p>

@param states
       For a record to match a filter, one of the values specified for this data type property must be the exact
       match of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type.
@return Returns a reference to this object so that method calls can be chained together.
@see AssessmentRunState
aws-java-sdk-inspector/src/main/java/com/amazonaws/services/inspector/model/AssessmentRunFilter.java