public ListGroupsForEntityResult withGroups(java.util.Collection<GroupIdentifier> groups) {
        setGroups(groups);
        return this;
    }
<p>
The overview of groups in an organization.
</p>

@param groups
       The overview of groups in an organization.
@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/ListGroupsForEntityResult.java