public GroupMembers withMemberGroups(java.util.Collection<MemberGroup> memberGroups) {
        setMemberGroups(memberGroups);
        return this;
    }
<p>
A list of sub groups that belong to a group. For example, the sub groups "Research", "Engineering", and
"Sales and Marketing" all belong to the group "Company".
</p>

@param memberGroups
       A list of sub groups that belong to a group. For example, the sub groups "Research", "Engineering", and
       "Sales and Marketing" all belong to the group "Company".
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qbusiness/src/main/java/com/amazonaws/services/qbusiness/model/GroupMembers.java