public ListVirtualClustersRequest 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>
The states of the requested virtual clusters.
</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
       The states of the requested virtual clusters.
@return Returns a reference to this object so that method calls can be chained together.
@see VirtualClusterState
aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/ListVirtualClustersRequest.java