public void setHostGroups(Collection<HostGroupEntity> hostGroups) {
    this.hostGroups = hostGroups;
  }
Set the host group collection.

@param hostGroups  collection of associated host groups
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintEntity.java