public Item withType(String type) {
        setType(type);
        return this;
    }
<p>
Type of the item: message or event.
</p>

@param type
       Type of the item: message or event.
@return Returns a reference to this object so that method calls can be chained together.
@see ChatItemType
aws-java-sdk-connectparticipant/src/main/java/com/amazonaws/services/connectparticipant/model/Item.java