com.airbus_cyber_security.graylog.config.rest.AutoValue_FieldWizard Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graylog-plugin-alert-wizard Show documentation
Show all versions of graylog-plugin-alert-wizard Show documentation
Graylog ${project.artifactId} plugin.
package com.airbus_cyber_security.graylog.config.rest;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
import javax.validation.constraints.NotNull;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_FieldWizard extends FieldWizard {
private final @NotNull String name;
private final boolean enabled;
AutoValue_FieldWizard(
@NotNull String name,
boolean enabled) {
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.enabled = enabled;
}
@JsonProperty(value = "name")
@Override
public @NotNull String getName() {
return name;
}
@JsonProperty(value = "enabled")
@Override
public boolean getEnabled() {
return enabled;
}
@Override
public String toString() {
return "FieldWizard{"
+ "name=" + name + ", "
+ "enabled=" + enabled
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof FieldWizard) {
FieldWizard that = (FieldWizard) o;
return this.name.equals(that.getName())
&& this.enabled == that.getEnabled();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= enabled ? 1231 : 1237;
return h$;
}
}