public GetNetworkRoutesRequest withTypes(java.util.Collection<String> types) {
        setTypes(types);
        return this;
    }
<p>
The route types.
</p>

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