code: public CreateListenerRequest withCertificates(Certificate... certificates) {
          if (this.certificates == null) {
              setCertificates(new java.util.ArrayList<Certificate>(certificates.length));
          }
          for (Certificate ele : certificates) {
              this.certificates.add(ele);
          }
          return this;
      }
docs: <p>
  [HTTPS and TLS listeners] The default SSL server certificate. You must provide exactly one certificate. Set
  <code>CertificateArn</code> to the certificate ARN but do not set <code>IsDefault</code>.
  </p>
  <p>
  To create a certificate list, use <a>AddListenerCertificates</a>.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setCertificates(java.util.Collection)} or {@link #withCertificates(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param certificates
  [HTTPS and TLS listeners] The default SSL server certificate. You must provide exactly one certificate.
  Set <code>CertificateArn</code> to the certificate ARN but do not set <code>IsDefault</code>.</p>
  <p>
  To create a certificate list, use <a>AddListenerCertificates</a>.
  @return Returns a reference to this object so that method calls can be chained together.