public void setKeyId(String keyId) {
        this.keyId = keyId;
    }
<p>
The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key as
described in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.
</p>
<p>
To identify an HMAC KMS key, use the <a>DescribeKey</a> operation and see the <code>KeySpec</code> field in the
response.
</p>

@param keyId
       The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key
       as described in <a href="https://datatracker.ietf.org/doc/html/rfc2104">RFC 2104</a>.</p>
       <p>
       To identify an HMAC KMS key, use the <a>DescribeKey</a> operation and see the <code>KeySpec</code> field
       in the response.
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GenerateMacRequest.java