@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }

    if (obj == null || getClass() != obj.getClass()) {
      return false;
    }

    Source other = (Source) obj;
    return Objects.equals(reporting, other.reporting) &&
      Objects.equals(type, other.type);
  }
Sets the OK/WARNING/CRTICAL structures.

@param reporting
         the reporting structure or {@code null} for none.
ambari-server/src/main/java/org/apache/ambari/server/state/alert/Source.java