code: public void setDnsRecords(java.util.Collection<DnsRecord> dnsRecords) {
          if (dnsRecords == null) {
              this.dnsRecords = null;
              return;
          }
  
          this.dnsRecords = new java.util.ArrayList<DnsRecord>(dnsRecords);
      }
docs: <p>
  An array that contains one <code>DnsRecord</code> object for each Route 53 record that you want AWS Cloud Map to
  create when you register an instance.
  </p>
  
  @param dnsRecords
  An array that contains one <code>DnsRecord</code> object for each Route 53 record that you want AWS Cloud
  Map to create when you register an instance.