public RequestCertificateRequest withKeyAlgorithm(KeyAlgorithm keyAlgorithm) {
        this.keyAlgorithm = keyAlgorithm.toString();
        return this;
    }
<p>
Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. RSA is the
default key algorithm for ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) keys are smaller,
offering security comparable to RSA keys but with greater computing efficiency. However, ECDSA is not supported
by all network clients. Some Amazon Web Services services may require RSA keys, or only support ECDSA keys of a
particular size, while others allow the use of either RSA and ECDSA keys to ensure that compatibility is not
broken. Check the requirements for the Amazon Web Services service where you plan to deploy your certificate. For
more information about selecting an algorithm, see <a
href="https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate.html#algorithms">Key algorithms</a>.
</p>
<note>
<p>
Algorithms supported for an ACM certificate request include:
</p>
<ul>
<li>
<p>
<code>RSA_2048</code>
</p>
</li>
<li>
<p>
<code>EC_prime256v1</code>
</p>
</li>
<li>
<p>
<code>EC_secp384r1</code>
</p>
</li>
</ul>
<p>
Other listed algorithms are for imported certificates only.
</p>
</note> <note>
<p>
When you request a private PKI certificate signed by a CA from Amazon Web Services Private CA, the specified
signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.
</p>
</note>
<p>
Default: RSA_2048
</p>

@param keyAlgorithm
       Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. RSA
       is the default key algorithm for ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) keys
       are smaller, offering security comparable to RSA keys but with greater computing efficiency. However,
       ECDSA is not supported by all network clients. Some Amazon Web Services services may require RSA keys, or
       only support ECDSA keys of a particular size, while others allow the use of either RSA and ECDSA keys to
       ensure that compatibility is not broken. Check the requirements for the Amazon Web Services service where
       you plan to deploy your certificate. For more information about selecting an algorithm, see <a
       href="https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate.html#algorithms">Key
       algorithms</a>.</p> <note>
       <p>
       Algorithms supported for an ACM certificate request include:
       </p>
       <ul>
       <li>
       <p>
       <code>RSA_2048</code>
       </p>
       </li>
       <li>
       <p>
       <code>EC_prime256v1</code>
       </p>
       </li>
       <li>
       <p>
       <code>EC_secp384r1</code>
       </p>
       </li>
       </ul>
       <p>
       Other listed algorithms are for imported certificates only.
       </p>
       </note> <note>
       <p>
       When you request a private PKI certificate signed by a CA from Amazon Web Services Private CA, the
       specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.
       </p>
       </note>
       <p>
       Default: RSA_2048
@return Returns a reference to this object so that method calls can be chained together.
@see KeyAlgorithm
aws-java-sdk-acm/src/main/java/com/amazonaws/services/certificatemanager/model/RequestCertificateRequest.java