org.graylog2.migrations.AutoValue_V20170110150100_FixAlertConditionsMigration_MigrationCompleted Maven / Gradle / Ivy
package org.graylog2.migrations;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_V20170110150100_FixAlertConditionsMigration_MigrationCompleted extends V20170110150100_FixAlertConditionsMigration.MigrationCompleted {
private final Set streamIds;
private final Set alertConditionIds;
AutoValue_V20170110150100_FixAlertConditionsMigration_MigrationCompleted(
Set streamIds,
Set alertConditionIds) {
if (streamIds == null) {
throw new NullPointerException("Null streamIds");
}
this.streamIds = streamIds;
if (alertConditionIds == null) {
throw new NullPointerException("Null alertConditionIds");
}
this.alertConditionIds = alertConditionIds;
}
@JsonProperty("stream_ids")
@Override
public Set streamIds() {
return streamIds;
}
@JsonProperty("alert_condition_ids")
@Override
public Set alertConditionIds() {
return alertConditionIds;
}
@Override
public String toString() {
return "MigrationCompleted{"
+ "streamIds=" + streamIds + ", "
+ "alertConditionIds=" + alertConditionIds
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof V20170110150100_FixAlertConditionsMigration.MigrationCompleted) {
V20170110150100_FixAlertConditionsMigration.MigrationCompleted that = (V20170110150100_FixAlertConditionsMigration.MigrationCompleted) o;
return this.streamIds.equals(that.streamIds())
&& this.alertConditionIds.equals(that.alertConditionIds());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= streamIds.hashCode();
h$ *= 1000003;
h$ ^= alertConditionIds.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy