public Contact withRelatedContactId(String relatedContactId) {
        setRelatedContactId(relatedContactId);
        return this;
    }
<p>
The contactId that is <a
href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid">related</a>
to this contact.
</p>

@param relatedContactId
       The contactId that is <a
       href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
       >related</a> to this contact.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Contact.java