code: public PagedList<DatabaseInner> listByElasticPool(final String resourceGroupName, final String serverName, final String elasticPoolName) {
          ServiceResponse<Page<DatabaseInner>> response = listByElasticPoolSinglePageAsync(resourceGroupName, serverName, elasticPoolName).toBlocking().single();
          return new PagedList<DatabaseInner>(response.body()) {
              @Override
              public Page<DatabaseInner> nextPage(String nextPageLink) {
                  return listByElasticPoolNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Gets a list of databases in an elastic pool.
  
  @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  @param serverName The name of the server.
  @param elasticPoolName The name of the elastic pool.
  @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;DatabaseInner&gt; object if successful.