public void setContent(String content) {
        this.content = content;
    }
<p>
Content of the message or event. This is required when <code>Type</code> is <code>MESSAGE</code> and for certain
<code>ContentTypes</code> when <code>Type</code> is <code>EVENT</code>.
</p>
<ul>
<li>
<p>
For allowed message content, see the <code>Content</code> parameter in the <a
href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_SendMessage.html">SendMessage</a>
topic in the <i>Amazon Connect Participant Service API Reference</i>.
</p>
</li>
<li>
<p>
For allowed event content, see the <code>Content</code> parameter in the <a
href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_SendEvent.html">SendEvent</a> topic
in the <i>Amazon Connect Participant Service API Reference</i>.
</p>
</li>
</ul>

@param content
       Content of the message or event. This is required when <code>Type</code> is <code>MESSAGE</code> and for
       certain <code>ContentTypes</code> when <code>Type</code> is <code>EVENT</code>.</p>
       <ul>
       <li>
       <p>
       For allowed message content, see the <code>Content</code> parameter in the <a
       href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_SendMessage.html"
       >SendMessage</a> topic in the <i>Amazon Connect Participant Service API Reference</i>.
       </p>
       </li>
       <li>
       <p>
       For allowed event content, see the <code>Content</code> parameter in the <a
       href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_SendEvent.html"
       >SendEvent</a> topic in the <i>Amazon Connect Participant Service API Reference</i>.
       </p>
       </li>
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatEvent.java