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

    HostGroupComponentEntityPK that = (HostGroupComponentEntityPK) o;

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

@param name  component name
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostGroupComponentEntityPK.java