public void setHostGroupEntity(HostGroupEntity entity) {
    this.hostGroup = entity;
  }
Set the host group entity.

@param entity  host group entity
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostGroupComponentEntity.java