code: public DnsConfigChange withDnsRecords(DnsRecord... dnsRecords) {
          if (this.dnsRecords == null) {
              setDnsRecords(new java.util.ArrayList<DnsRecord>(dnsRecords.length));
          }
          for (DnsRecord ele : dnsRecords) {
              this.dnsRecords.add(ele);
          }
          return this;
      }
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>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setDnsRecords(java.util.Collection)} or {@link #withDnsRecords(java.util.Collection)} if you want to
  override the existing values.
  </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.
  @return Returns a reference to this object so that method calls can be chained together.