public void setComponents(Collection<HostGroupComponentEntity> components) {
    this.components = components;
  }
Set thge collection of associated component entities.

@param components  collection of components
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostGroupEntity.java