public GenerateMacRequest withMessage(java.nio.ByteBuffer message) {
        setMessage(message);
        return this;
    }
<p>
The message to be hashed. Specify a message of up to 4,096 bytes.
</p>
<p>
<code>GenerateMac</code> and <a>VerifyMac</a> do not provide special handling for message digests. If you
generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.
</p>
<p>
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service.
Users of the SDK should not perform Base64 encoding on this field.
</p>
<p>
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will
be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or
ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future
major version of the SDK.
</p>

@param message
       The message to be hashed. Specify a message of up to 4,096 bytes. </p>
       <p>
       <code>GenerateMac</code> and <a>VerifyMac</a> do not provide special handling for message digests. If you
       generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GenerateMacRequest.java