code: public PagedList<RouteInner> list(final String resourceGroupName, final String routeTableName) {
          ServiceResponse<Page<RouteInner>> response = listSinglePageAsync(resourceGroupName, routeTableName).toBlocking().single();
          return new PagedList<RouteInner>(response.body()) {
              @Override
              public Page<RouteInner> nextPage(String nextPageLink) {
                  return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Gets all routes in a route table.
  
  @param resourceGroupName The name of the resource group.
  @param routeTableName The name of the route table.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PagedList&lt;RouteInner&gt; object if successful.