public GetNetworkRoutesRequest withStates(RouteState... states) {
        java.util.ArrayList<String> statesCopy = new java.util.ArrayList<String>(states.length);
        for (RouteState value : states) {
            statesCopy.add(value.toString());
        }
        if (getStates() == null) {
            setStates(statesCopy);
        } else {
            getStates().addAll(statesCopy);
        }
        return this;
    }
<p>
The route states.
</p>

@param states
       The route states.
@return Returns a reference to this object so that method calls can be chained together.
@see RouteState
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/GetNetworkRoutesRequest.java