public GenerateMacRequest withMacAlgorithm(String macAlgorithm) {
        setMacAlgorithm(macAlgorithm);
        return this;
    }
<p>
The MAC algorithm used in the operation.
</p>
<p>
The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your
HMAC KMS key supports, use the <a>DescribeKey</a> operation and see the <code>MacAlgorithms</code> field in the
<code>DescribeKey</code> response.
</p>

@param macAlgorithm
       The MAC algorithm used in the operation.</p>
       <p>
       The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that
       your HMAC KMS key supports, use the <a>DescribeKey</a> operation and see the <code>MacAlgorithms</code>
       field in the <code>DescribeKey</code> response.
@return Returns a reference to this object so that method calls can be chained together.
@see MacAlgorithmSpec
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GenerateMacRequest.java