public ListClustersRequest withClusterStates(ClusterState... clusterStates) {
        com.amazonaws.internal.SdkInternalList<String> clusterStatesCopy = new com.amazonaws.internal.SdkInternalList<String>(clusterStates.length);
        for (ClusterState value : clusterStates) {
            clusterStatesCopy.add(value.toString());
        }
        if (getClusterStates() == null) {
            setClusterStates(clusterStatesCopy);
        } else {
            getClusterStates().addAll(clusterStatesCopy);
        }
        return this;
    }
public ListClustersRequest withClusterStates ( ClusterState ... clusterStates ) { com . amazonaws . internal . SdkInternalList < String > clusterStatesCopy = new com . amazonaws . internal . SdkInternalList < String > ( clusterStates . length ) ; for ( ClusterState value : clusterStates ) { clusterStatesCopy . add ( value . toString ( ) ) ; } if ( getClusterStates ( ) == null ) { setClusterStates ( clusterStatesCopy ) ; } else { getClusterStates ( ) . addAll ( clusterStatesCopy ) ; } return this ; }
<p>
The cluster state filters to apply when listing clusters.
</p>

@param clusterStates
The cluster state filters to apply when listing clusters.
@return Returns a reference to this object so that method calls can be chained together.
@see ClusterState