code: public PagedList<ResourceMetricDefinitionInner> listMultiRolePoolInstanceMetricDefinitions(final String resourceGroupName, final String name, final String instance) {
          ServiceResponse<Page<ResourceMetricDefinitionInner>> response = listMultiRolePoolInstanceMetricDefinitionsSinglePageAsync(resourceGroupName, name, instance).toBlocking().single();
          return new PagedList<ResourceMetricDefinitionInner>(response.body()) {
              @Override
              public Page<ResourceMetricDefinitionInner> nextPage(String nextPageLink) {
                  return listMultiRolePoolInstanceMetricDefinitionsNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
  Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param name Name of the App Service Environment.
  @param instance Name of the instance in the multi-role 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;ResourceMetricDefinitionInner&gt; object if successful.