public BatchPutMessageErrorEntry withMessageId(String messageId) {
        setMessageId(messageId);
        return this;
    }
<p>
The ID of the message that caused the error. (See the value corresponding to the <code>"messageId"</code> key in
the <code>"message"</code> object.)
</p>

@param messageId
       The ID of the message that caused the error. (See the value corresponding to the <code>"messageId"</code>
       key in the <code>"message"</code> object.)
@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/BatchPutMessageErrorEntry.java