public DomainAssociation withCertificate(Certificate certificate) {
        setCertificate(certificate);
        return this;
    }
<p>
Describes the SSL/TLS certificate for the domain association. This can be your own custom certificate or the
default certificate that Amplify provisions for you.
</p>
<p>
If you are updating your domain to use a different certificate, <code>certificate</code> points to the new
certificate that is being created instead of the current active certificate. Otherwise, <code>certificate</code>
points to the current active certificate.
</p>

@param certificate
       Describes the SSL/TLS certificate for the domain association. This can be your own custom certificate or
       the default certificate that Amplify provisions for you.</p>
       <p>
       If you are updating your domain to use a different certificate, <code>certificate</code> points to the new
       certificate that is being created instead of the current active certificate. Otherwise,
       <code>certificate</code> points to the current active certificate.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-amplify/src/main/java/com/amazonaws/services/amplify/model/DomainAssociation.java