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

org.graylog2.contentpacks.model.entities.$AutoValue_LookupDataAdapterEntity Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.contentpacks.model.entities;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
import org.graylog2.contentpacks.model.entities.references.ReferenceMap;
import org.graylog2.contentpacks.model.entities.references.ValueReference;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_LookupDataAdapterEntity extends LookupDataAdapterEntity {

  private final ValueReference name;

  private final ValueReference title;

  private final ValueReference description;

  private final ReferenceMap configuration;

  $AutoValue_LookupDataAdapterEntity(
      ValueReference name,
      ValueReference title,
      ValueReference description,
      ReferenceMap configuration) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    if (description == null) {
      throw new NullPointerException("Null description");
    }
    this.description = description;
    if (configuration == null) {
      throw new NullPointerException("Null configuration");
    }
    this.configuration = configuration;
  }

  @JsonProperty("name")
  @Override
  public ValueReference name() {
    return name;
  }

  @JsonProperty("title")
  @Override
  public ValueReference title() {
    return title;
  }

  @JsonProperty("description")
  @Override
  public ValueReference description() {
    return description;
  }

  @JsonProperty("configuration")
  @Override
  public ReferenceMap configuration() {
    return configuration;
  }

  @Override
  public String toString() {
    return "LookupDataAdapterEntity{"
        + "name=" + name + ", "
        + "title=" + title + ", "
        + "description=" + description + ", "
        + "configuration=" + configuration
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof LookupDataAdapterEntity) {
      LookupDataAdapterEntity that = (LookupDataAdapterEntity) o;
      return this.name.equals(that.name())
          && this.title.equals(that.title())
          && this.description.equals(that.description())
          && this.configuration.equals(that.configuration());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= name.hashCode();
    h$ *= 1000003;
    h$ ^= title.hashCode();
    h$ *= 1000003;
    h$ ^= description.hashCode();
    h$ *= 1000003;
    h$ ^= configuration.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy