public Certificate withType(CertificateType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of SSL/TLS certificate that you want to use.
</p>
<p>
Specify <code>AMPLIFY_MANAGED</code> to use the default certificate that Amplify provisions for you.
</p>
<p>
Specify <code>CUSTOM</code> to use your own certificate that you have already added to Certificate Manager in
your Amazon Web Services account. Make sure you request (or import) the certificate in the US East (N. Virginia)
Region (us-east-1). For more information about using ACM, see <a
href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing certificates into
Certificate Manager</a> in the <i>ACM User guide</i> .
</p>

@param type
       The type of SSL/TLS certificate that you want to use.</p>
       <p>
       Specify <code>AMPLIFY_MANAGED</code> to use the default certificate that Amplify provisions for you.
       </p>
       <p>
       Specify <code>CUSTOM</code> to use your own certificate that you have already added to Certificate Manager
       in your Amazon Web Services account. Make sure you request (or import) the certificate in the US East (N.
       Virginia) Region (us-east-1). For more information about using ACM, see <a
       href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing certificates
       into Certificate Manager</a> in the <i>ACM User guide</i> .
@return Returns a reference to this object so that method calls can be chained together.
@see CertificateType
aws-java-sdk-amplify/src/main/java/com/amazonaws/services/amplify/model/Certificate.java