public DnsBatchResult<Page<RecordSet>> listRecordSets(
      String zoneName, Dns.RecordSetListOption... options) {
    DnsBatchResult<Page<RecordSet>> result = new DnsBatchResult<>();
    Map<DnsRpc.Option, ?> optionMap = DnsImpl.optionMap(options);
    RpcBatch.Callback<ResourceRecordSetsListResponse> callback =
        createListRecordSetsCallback(zoneName, result, optionMap);
    batch.addListRecordSets(zoneName, callback, optionMap);
    return result;
  }
public DnsBatchResult < Page < RecordSet > > listRecordSets ( String zoneName , Dns . RecordSetListOption ... options ) { DnsBatchResult < Page < RecordSet > > result = new DnsBatchResult < > ( ) ; Map < DnsRpc . Option , ? > optionMap = DnsImpl . optionMap ( options ) ; RpcBatch . Callback < ResourceRecordSetsListResponse > callback = createListRecordSetsCallback ( zoneName , result , optionMap ) ; batch . addListRecordSets ( zoneName , callback , optionMap ) ; return result ; }
Adds a request representing the "list record sets" operation in the zone specified by {@code
zoneName} to this batch. The {@code options} can be used to restrict the fields returned or
provide page size limits in the same way as for {@link Dns#listRecordSets(String,
Dns.RecordSetListOption...)}. Calling {@link DnsBatchResult#get()} on the return value yields a
page of record sets if successful and throws a {@link DnsException} if the operation failed or
the zone does not exist.