public ChatEvent withType(ChatEventType type) {
        this.type = type.toString();
        return this;
    }
<p>
Type of chat integration event.
</p>

@param type
       Type of chat integration event.
@return Returns a reference to this object so that method calls can be chained together.
@see ChatEventType
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatEvent.java