code: public PagedList<ProtectionPolicyResourceInner> list(final String vaultName, final String resourceGroupName) {
          ServiceResponse<Page<ProtectionPolicyResourceInner>> response = listSinglePageAsync(vaultName, resourceGroupName).toBlocking().single();
          return new PagedList<ProtectionPolicyResourceInner>(response.body()) {
              @Override
              public Page<ProtectionPolicyResourceInner> nextPage(String nextPageLink) {
                  return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Lists of backup policies associated with Recovery Services Vault. API provides pagination parameters to fetch scoped results.
  
  @param vaultName The name of the recovery services vault.
  @param resourceGroupName The name of the resource group where the recovery services vault is present.
  @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;ProtectionPolicyResourceInner&gt; object if successful.