<p>
The root parent thing group.
</p>

@param rootToParentThingGroups
The root parent thing group.
161025
public void setRootToParentThingGroups(java.util.Collection<GroupNameAndArn> rootToParentThingGroups) {
        if (rootToParentThingGroups == null) {
            this.rootToParentThingGroups = null;
            return;
        }

        this.rootToParentThingGroups = new java.util.ArrayList<GroupNameAndArn>(rootToParentThingGroups);
    }
263485
public void setSubnetGroups(java.util.Collection<SubnetGroup> subnetGroups) {
        if (subnetGroups == null) {
            this.subnetGroups = null;
            return;
        }

        this.subnetGroups = new java.util.ArrayList<SubnetGroup>(subnetGroups);
    }
894457
public void setPlacementGroups(java.util.Collection<PlacementGroup> placementGroups) {
        if (placementGroups == null) {
            this.placementGroups = null;
            return;
        }

        this.placementGroups = new com.amazonaws.internal.SdkInternalList<PlacementGroup>(placementGroups);
    }
260311
private void groupByDOM(AreaImpl root)
    {
        if (root.getChildCount() > 1)
            findSuperAreas(root, 1);
        for (int i = 0; i < root.getChildCount(); i++)
            groupByDOM((AreaImpl) root.getChildAt(i));
    }
601065
public Tree parent(Tree root) {
        List<Tree> kids = root.children();
        return traverse(root, kids, this);
    }
1285706
@Override
    public Iterator findParentGroups(IGroupMember gm) throws GroupsException {
        log.debug("Finding containing groups for member {}", gm.getKey());
        Collection groups = new ArrayList(10);
        IEntityGroup group = null;
        for (Iterator it = getGroupStore().findParentGroups(gm); it.hasNext(); ) {
            group = (IEntityGroup) it.next();
            group.setLocalGroupService(this);
            groups.add(group);
            if (cacheInUse()) {
                try {
                    if (getGroupFromCache(group.getEntityIdentifier().getKey()) == null) {
                        cacheAdd(group);
                    }
                } catch (CachingException ce) {
                    throw new GroupsException("Problem finding containing groups", ce);
                }
            }
        }
        return groups.iterator();
    }
1108361
public void setParentId(String parentId)
   {
      this.parentId = (parentId == null || parentId.equals("") ? null : parentId);
      setGroupName(groupName);
   }
957039
public void setInstanceGroupIds(java.util.Collection<String> instanceGroupIds) {
        if (instanceGroupIds == null) {
            this.instanceGroupIds = null;
            return;
        }

        this.instanceGroupIds = new com.amazonaws.internal.SdkInternalList<String>(instanceGroupIds);
    }
786697
@Override
    public Iterator findParentGroups(IGroupMember gm) throws GroupsException {
        if (isTreeRefreshRequired()) {
            refreshTree();
        }
        log.debug("Invoking findParentGroups() for group member: {}", gm.getKey());
        Set<IEntityGroup> rslt = new HashSet<>();
        final IEntityGroup root = getRootGroup();
        if (gm.isGroup()) {
            IEntityGroup group = (IEntityGroup) gm;
            log.debug(
                    "Group member {} is group {}, {}",
                    gm.getKey(),
                    group.getLocalKey(),
                    group.getName());
            getParentGroups(group.getLocalKey(), rslt);
        } else if (!gm.isGroup() && gm.getLeafType().equals(root.getLeafType())) {
            Object[] groupKeys = getPersonGroupMemberKeys(gm);
            for (Object o : groupKeys) {
                String s = (String) o;
                IEntityGroup group = groupsTree.getGroups().get(s);
                rslt.add(group);
                rslt.addAll(getParentGroups(s, new HashSet<>()));
            }
        }
        return rslt.iterator();
    }
65549
public boolean hasParents(final Class<?> group) {
    final Set<Class<?>> possibleParents = getParentsOfGroup(group);
    return possibleParents != null && !possibleParents.isEmpty();
  }
1313827
public void setParent(AstNode parent) {
        if (parent == this.parent) {
            return;
        }

        // Convert position back to absolute.
        if (this.parent != null) {
            setRelative(-this.parent.getAbsolutePosition());
        }

        this.parent = parent;
        if (parent != null) {
            setRelative(parent.getAbsolutePosition());
        }
    }
174683
void setChildrenContexts(Map<String, List<TraverserContext<T>>> children) {
        assertTrue(this.children == null, "children already set");
        this.children = children;
    }
666268
public void addRootGroup(final Group nextRootGroup)
    {
        this.getRootGroups().add(nextRootGroup);
        
        RepositoryConnection conn = null;
        try
        {
            conn = this.repository.getConnection();
            conn.begin();
            
            this.storeGroup(nextRootGroup, conn, true);
            
            conn.commit();
        }
        catch(final RepositoryException e)
        {
            this.log.error("Found exception while storing root group", e);
            if(conn != null)
            {
                try
                {
                    conn.rollback();
                }
                catch(final RepositoryException e1)
                {
                    this.log.error("Found exception while trying to roll back connection", e1);
                }
            }
        }
        finally
        {
            if(conn != null)
            {
                try
                {
                    conn.close();
                }
                catch(final RepositoryException e)
                {
                    this.log.error("Found exception closing repository connection", e);
                }
            }
        }
    }
744206
public static <T> List<T> toParent(TreeDef.Parented<T> treeDef, T node, T parent) {
		List<T> list = new ArrayList<>();
		T tip = node;
		while (true) {
			list.add(tip);
			tip = treeDef.parentOf(tip);
			if (tip == null) {
				throw new IllegalArgumentException(parent + " is not a parent of " + node);
			} else if (tip.equals(parent)) {
				list.add(parent);
				return list;
			}
		}
	}
899098
@Override
    public Iterator findParentGroups(IGroupMember gm) throws GroupsException {
        if (gm.isGroup()) {
            IEntityGroup group = (IEntityGroup) gm;
            return findParentGroups(group);
        } else {
            IEntity ent = (IEntity) gm;
            return findParentGroups(ent);
        }
    }
1050316
public void setClusterSecurityGroups(java.util.Collection<ClusterSecurityGroup> clusterSecurityGroups) {
        if (clusterSecurityGroups == null) {
            this.clusterSecurityGroups = null;
            return;
        }

        this.clusterSecurityGroups = new com.amazonaws.internal.SdkInternalList<ClusterSecurityGroup>(clusterSecurityGroups);
    }
56012
public void setAdditionalMasterSecurityGroups(java.util.Collection<String> additionalMasterSecurityGroups) {
        if (additionalMasterSecurityGroups == null) {
            this.additionalMasterSecurityGroups = null;
            return;
        }

        this.additionalMasterSecurityGroups = new com.amazonaws.internal.SdkInternalList<String>(additionalMasterSecurityGroups);
    }