code: public PagedList<AnalysisDefinitionInner> listSiteAnalyses(final String resourceGroupName, final String siteName, final String diagnosticCategory) {
          ServiceResponse<Page<AnalysisDefinitionInner>> response = listSiteAnalysesSinglePageAsync(resourceGroupName, siteName, diagnosticCategory).toBlocking().single();
          return new PagedList<AnalysisDefinitionInner>(response.body()) {
              @Override
              public Page<AnalysisDefinitionInner> nextPage(String nextPageLink) {
                  return listSiteAnalysesNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Get Site Analyses.
  Get Site Analyses.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param siteName Site Name
  @param diagnosticCategory Diagnostic Category
  @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;AnalysisDefinitionInner&gt; object if successful.