public UpdateAppInstanceUserEndpointRequest withAllowMessages(String allowMessages) {
        setAllowMessages(allowMessages);
        return this;
    }
<p>
Boolean that controls whether the <code>AppInstanceUserEndpoint</code> is opted in to receive messages.
<code>ALL</code> indicates the endpoint will receive all messages. <code>NONE</code> indicates the endpoint will
receive no messages.
</p>

@param allowMessages
       Boolean that controls whether the <code>AppInstanceUserEndpoint</code> is opted in to receive messages.
       <code>ALL</code> indicates the endpoint will receive all messages. <code>NONE</code> indicates the
       endpoint will receive no messages.
@return Returns a reference to this object so that method calls can be chained together.
@see AllowMessages
aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/UpdateAppInstanceUserEndpointRequest.java