public AssessmentRunFilter withStates(AssessmentRunState... states) {
        java.util.ArrayList<String> statesCopy = new java.util.ArrayList<String>(states.length);
        for (AssessmentRunState value : states) {
            statesCopy.add(value.toString());
        }
        if (getStates() == null) {
            setStates(statesCopy);
        } else {
            getStates().addAll(statesCopy);
        }
        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>

@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