@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    HostGroupEntityPK that = (HostGroupEntityPK) o;

    return this.blueprintName.equals(that.blueprintName) &&
           this.name.equals(that.name);
  }
Set the name of the host group.

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