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

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

There is a newer version: 5.2.7
Show newest version


package org.graylog2.contentpacks.model.entities;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
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_InputEntity extends InputEntity {

  private final @NotBlank ValueReference title;

  private final @NotNull ReferenceMap configuration;

  private final @NotNull Map staticFields;

  private final @NotBlank ValueReference type;

  private final ValueReference global;

  private final @NotNull List extractors;

  $AutoValue_InputEntity(
      @NotBlank ValueReference title,
      @NotNull ReferenceMap configuration,
      @NotNull Map staticFields,
      @NotBlank ValueReference type,
      ValueReference global,
      @NotNull List extractors) {
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    if (configuration == null) {
      throw new NullPointerException("Null configuration");
    }
    this.configuration = configuration;
    if (staticFields == null) {
      throw new NullPointerException("Null staticFields");
    }
    this.staticFields = staticFields;
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (global == null) {
      throw new NullPointerException("Null global");
    }
    this.global = global;
    if (extractors == null) {
      throw new NullPointerException("Null extractors");
    }
    this.extractors = extractors;
  }

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

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

  @JsonProperty(value = "static_fields")
  @Override
  public @NotNull Map staticFields() {
    return staticFields;
  }

  @JsonProperty(value = "type")
  @Override
  public @NotBlank ValueReference type() {
    return type;
  }

  @JsonProperty(value = "global")
  @Override
  public ValueReference global() {
    return global;
  }

  @JsonProperty(value = "extractors")
  @Override
  public @NotNull List extractors() {
    return extractors;
  }

  @Override
  public String toString() {
    return "InputEntity{"
         + "title=" + title + ", "
         + "configuration=" + configuration + ", "
         + "staticFields=" + staticFields + ", "
         + "type=" + type + ", "
         + "global=" + global + ", "
         + "extractors=" + extractors
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof InputEntity) {
      InputEntity that = (InputEntity) o;
      return (this.title.equals(that.title()))
           && (this.configuration.equals(that.configuration()))
           && (this.staticFields.equals(that.staticFields()))
           && (this.type.equals(that.type()))
           && (this.global.equals(that.global()))
           && (this.extractors.equals(that.extractors()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= title.hashCode();
    h$ *= 1000003;
    h$ ^= configuration.hashCode();
    h$ *= 1000003;
    h$ ^= staticFields.hashCode();
    h$ *= 1000003;
    h$ ^= type.hashCode();
    h$ *= 1000003;
    h$ ^= global.hashCode();
    h$ *= 1000003;
    h$ ^= extractors.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy