public Message withMessageId(String messageId) {
        setMessageId(messageId);
        return this;
    }
<p>
The ID to assign to the message. Within each batch sent, each <code>"messageId"</code> must be unique.
</p>

@param messageId
       The ID to assign to the message. Within each batch sent, each <code>"messageId"</code> must be unique.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ioteventsdata/src/main/java/com/amazonaws/services/ioteventsdata/model/Message.java