public AssociateMemberToGroupRequest withMemberId(String memberId) {
        setMemberId(memberId);
        return this;
    }
<p>
The member (user or group) to associate to the group.
</p>
<p>
The member ID can accept <i>UserID or GroupId</i>, <i>Username or Groupname</i>, or <i>email</i>.
</p>
<ul>
<li>
<p>
Member: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234
</p>
</li>
<li>
<p>
Email address: member@domain.tld
</p>
</li>
<li>
<p>
Member name: member
</p>
</li>
</ul>

@param memberId
       The member (user or group) to associate to the group.</p>
       <p>
       The member ID can accept <i>UserID or GroupId</i>, <i>Username or Groupname</i>, or <i>email</i>.
       </p>
       <ul>
       <li>
       <p>
       Member: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234
       </p>
       </li>
       <li>
       <p>
       Email address: member@domain.tld
       </p>
       </li>
       <li>
       <p>
       Member name: member
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/AssociateMemberToGroupRequest.java