code: public PagedList<AppServiceCertificateResourceInner> listCertificates(final String resourceGroupName, final String certificateOrderName) {
          ServiceResponse<Page<AppServiceCertificateResourceInner>> response = listCertificatesSinglePageAsync(resourceGroupName, certificateOrderName).toBlocking().single();
          return new PagedList<AppServiceCertificateResourceInner>(response.body()) {
              @Override
              public Page<AppServiceCertificateResourceInner> nextPage(String nextPageLink) {
                  return listCertificatesNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: List all certificates associated with a certificate order.
  List all certificates associated with a certificate order.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param certificateOrderName Name of the certificate order.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws DefaultErrorResponseException 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;AppServiceCertificateResourceInner&gt; object if successful.