public PublishBatchRequestEntry withMessageAttributes(java.util.Map<String, MessageAttributeValue> messageAttributes) {
        setMessageAttributes(messageAttributes);
        return this;
    }
<p>
Each message attribute consists of a <code>Name</code>, <code>Type</code>, and <code>Value</code>. For more
information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html">Amazon SNS
message attributes</a> in the Amazon SNS Developer Guide.
</p>

@param messageAttributes
       Each message attribute consists of a <code>Name</code>, <code>Type</code>, and <code>Value</code>. For
       more information, see <a
       href="https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html">Amazon SNS message
       attributes</a> in the Amazon SNS Developer Guide.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/model/PublishBatchRequestEntry.java