public GetNetworkRoutesRequest withStates(java.util.Collection<String> states) {
        setStates(states);
        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