All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog.events.legacy.AutoValue_V20190722150700_LegacyAlertConditionMigration_MigrationCompleted Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
package org.graylog.events.legacy;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableSet;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_V20190722150700_LegacyAlertConditionMigration_MigrationCompleted extends V20190722150700_LegacyAlertConditionMigration.MigrationCompleted {

  private final ImmutableSet completedAlertConditions;

  private final ImmutableSet completedAlarmCallbacks;

  AutoValue_V20190722150700_LegacyAlertConditionMigration_MigrationCompleted(
      ImmutableSet completedAlertConditions,
      ImmutableSet completedAlarmCallbacks) {
    if (completedAlertConditions == null) {
      throw new NullPointerException("Null completedAlertConditions");
    }
    this.completedAlertConditions = completedAlertConditions;
    if (completedAlarmCallbacks == null) {
      throw new NullPointerException("Null completedAlarmCallbacks");
    }
    this.completedAlarmCallbacks = completedAlarmCallbacks;
  }

  @JsonProperty("completed_alert_conditions")
  @Override
  public ImmutableSet completedAlertConditions() {
    return completedAlertConditions;
  }

  @JsonProperty("completed_alarm_callbacks")
  @Override
  public ImmutableSet completedAlarmCallbacks() {
    return completedAlarmCallbacks;
  }

  @Override
  public String toString() {
    return "MigrationCompleted{"
        + "completedAlertConditions=" + completedAlertConditions + ", "
        + "completedAlarmCallbacks=" + completedAlarmCallbacks
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof V20190722150700_LegacyAlertConditionMigration.MigrationCompleted) {
      V20190722150700_LegacyAlertConditionMigration.MigrationCompleted that = (V20190722150700_LegacyAlertConditionMigration.MigrationCompleted) o;
      return this.completedAlertConditions.equals(that.completedAlertConditions())
          && this.completedAlarmCallbacks.equals(that.completedAlarmCallbacks());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= completedAlertConditions.hashCode();
    h$ *= 1000003;
    h$ ^= completedAlarmCallbacks.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy