public MacAttributes withAlgorithm(MacAlgorithm algorithm) {
        this.algorithm = algorithm.toString();
        return this;
    }
<p>
The encryption algorithm for MAC generation or verification.
</p>

@param algorithm
       The encryption algorithm for MAC generation or verification.
@return Returns a reference to this object so that method calls can be chained together.
@see MacAlgorithm
aws-java-sdk-paymentcryptographydata/src/main/java/com/amazonaws/services/paymentcryptographydata/model/MacAttributes.java