public Item withRelatedContactId(String relatedContactId) {
        setRelatedContactId(relatedContactId);
        return this;
    }
<p>
The contactId on which the transcript item was originally sent. This field is only populated for persistent chats
when the transcript item is from the past chat session. For more information, see <a
href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html">Enable persistent chat</a>.
</p>

@param relatedContactId
       The contactId on which the transcript item was originally sent. This field is only populated for
       persistent chats when the transcript item is from the past chat session. For more information, see <a
       href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html">Enable persistent
       chat</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connectparticipant/src/main/java/com/amazonaws/services/connectparticipant/model/Item.java