public DeleteMessageRequest withId(String id) {
        setId(id);
        return this;
    }
<p>
ID of the message to be deleted. This is the <code>Id</code> field in the received message (see <a
href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-message-subscribe.html"> Message
(Subscribe)</a> in the Chat Messaging API).
</p>

@param id
       ID of the message to be deleted. This is the <code>Id</code> field in the received message (see <a
       href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-message-subscribe.html"> Message
       (Subscribe)</a> in the Chat Messaging API).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ivschat/src/main/java/com/amazonaws/services/ivschat/model/DeleteMessageRequest.java