code: public PagedList<RecordSetInner> listByType(final String resourceGroupName, final String zoneName, final RecordType recordType) {
          ServiceResponse<Page<RecordSetInner>> response = listByTypeSinglePageAsync(resourceGroupName, zoneName, recordType).toBlocking().single();
          return new PagedList<RecordSetInner>(response.body()) {
              @Override
              public Page<RecordSetInner> nextPage(String nextPageLink) {
                  return listByTypeNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Lists the record sets of a specified type in a DNS zone.
  
  @param resourceGroupName The name of the resource group.
  @param zoneName The name of the DNS zone (without a terminating dot).
  @param recordType The type of record sets to enumerate. Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT'
  @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;RecordSetInner&gt; object if successful.