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

    if (!(o instanceof AlertSummaryDTO)) return false;

    AlertSummaryDTO that = (AlertSummaryDTO) o;

    return new EqualsBuilder()
        .append(okCount, that.okCount)
        .append(warningCount, that.warningCount)
        .append(criticalCount, that.criticalCount)
        .append(unknownCount, that.unknownCount)
        .append(maintenanceCount, that.maintenanceCount)
        .isEquals();
  }
Sets the count of alerts in maintenance state.

@param maintenanceCount
         the maintenanceCount to set
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertSummaryDTO.java