public MemberGroup withGroupId(String groupId) {
        setGroupId(groupId);
        return this;
    }
<p>
The identifier of the sub group you want to map to a group.
</p>

@param groupId
       The identifier of the sub group you want to map to a group.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/MemberGroup.java