code: public PagedList<String> listWebAppsByHybridConnection(final String resourceGroupName, final String name, final String namespaceName, final String relayName) {
          ServiceResponse<Page<String>> response = listWebAppsByHybridConnectionSinglePageAsync(resourceGroupName, name, namespaceName, relayName).toBlocking().single();
          return new PagedList<String>(response.body()) {
              @Override
              public Page<String> nextPage(String nextPageLink) {
                  return listWebAppsByHybridConnectionNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Get all apps that use a Hybrid Connection in an App Service Plan.
  Get all apps that use a Hybrid Connection in an App Service Plan.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param name Name of the App Service plan.
  @param namespaceName Name of the Hybrid Connection namespace.
  @param relayName Name of the Hybrid Connection relay.
  @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;String&gt; object if successful.