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

com.airbus_cyber_security.graylog.config.rest.AutoValue_FieldWizard Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version


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$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy