code: public VpcEndpoint withDnsEntries(DnsEntry... dnsEntries) {
          if (this.dnsEntries == null) {
              setDnsEntries(new com.amazonaws.internal.SdkInternalList<DnsEntry>(dnsEntries.length));
          }
          for (DnsEntry ele : dnsEntries) {
              this.dnsEntries.add(ele);
          }
          return this;
      }
docs: <p>
  (Interface endpoint) The DNS entries for the endpoint.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setDnsEntries(java.util.Collection)} or {@link #withDnsEntries(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param dnsEntries
  (Interface endpoint) The DNS entries for the endpoint.
  @return Returns a reference to this object so that method calls can be chained together.