public PrivateKeyAttributesV3 withAlgorithm(PrivateKeyAlgorithm algorithm) {
        this.algorithm = algorithm.toString();
        return this;
    }
<p>
Defines the algorithm used to generate the private key.
</p>

@param algorithm
       Defines the algorithm used to generate the private key.
@return Returns a reference to this object so that method calls can be chained together.
@see PrivateKeyAlgorithm
aws-java-sdk-pcaconnectorad/src/main/java/com/amazonaws/services/pcaconnectorad/model/PrivateKeyAttributesV3.java