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

org.graylog2.contentpacks.model.entities.$AutoValue_PipelineRuleEntity 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 javax.annotation.Generated;
import javax.annotation.Nullable;
import org.graylog2.contentpacks.model.entities.references.ValueReference;

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

  private final ValueReference title;

  private final ValueReference description;

  private final ValueReference source;

  $AutoValue_PipelineRuleEntity(
      ValueReference title,
      @Nullable ValueReference description,
      ValueReference source) {
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    this.description = description;
    if (source == null) {
      throw new NullPointerException("Null source");
    }
    this.source = source;
  }

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

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

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

  @Override
  public String toString() {
    return "PipelineRuleEntity{"
         + "title=" + title + ", "
         + "description=" + description + ", "
         + "source=" + source
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PipelineRuleEntity) {
      PipelineRuleEntity that = (PipelineRuleEntity) o;
      return (this.title.equals(that.title()))
           && ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
           && (this.source.equals(that.source()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= title.hashCode();
    h$ *= 1000003;
    h$ ^= (description == null) ? 0 : description.hashCode();
    h$ *= 1000003;
    h$ ^= source.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy