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

org.graylog2.contentpacks.model.entities.$AutoValue_StreamRuleEntity 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 javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.graylog2.contentpacks.model.entities.references.ValueReference;

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

  private final @NotNull ValueReference type;

  private final @NotBlank ValueReference field;

  private final @NotNull ValueReference value;

  private final ValueReference inverted;

  private final ValueReference description;

  $AutoValue_StreamRuleEntity(
      @NotNull ValueReference type,
      @NotBlank ValueReference field,
      @NotNull ValueReference value,
      ValueReference inverted,
      ValueReference description) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (field == null) {
      throw new NullPointerException("Null field");
    }
    this.field = field;
    if (value == null) {
      throw new NullPointerException("Null value");
    }
    this.value = value;
    if (inverted == null) {
      throw new NullPointerException("Null inverted");
    }
    this.inverted = inverted;
    if (description == null) {
      throw new NullPointerException("Null description");
    }
    this.description = description;
  }

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

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

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

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

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

  @Override
  public String toString() {
    return "StreamRuleEntity{"
        + "type=" + type + ", "
        + "field=" + field + ", "
        + "value=" + value + ", "
        + "inverted=" + inverted + ", "
        + "description=" + description
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof StreamRuleEntity) {
      StreamRuleEntity that = (StreamRuleEntity) o;
      return this.type.equals(that.type())
          && this.field.equals(that.field())
          && this.value.equals(that.value())
          && this.inverted.equals(that.inverted())
          && this.description.equals(that.description());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= type.hashCode();
    h$ *= 1000003;
    h$ ^= field.hashCode();
    h$ *= 1000003;
    h$ ^= value.hashCode();
    h$ *= 1000003;
    h$ ^= inverted.hashCode();
    h$ *= 1000003;
    h$ ^= description.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy