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

org.graylog.plugins.views.search.export.AutoValue_SearchExportJob Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.views.search.export;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
import javax.validation.constraints.NotEmpty;
import org.joda.time.DateTime;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SearchExportJob extends SearchExportJob {

  private final String id;

  private final DateTime createdAt;

  private final String searchId;

  private final @NotEmpty ResultFormat resultFormat;

  AutoValue_SearchExportJob(
      String id,
      DateTime createdAt,
      String searchId,
      @NotEmpty ResultFormat resultFormat) {
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
    if (createdAt == null) {
      throw new NullPointerException("Null createdAt");
    }
    this.createdAt = createdAt;
    if (searchId == null) {
      throw new NullPointerException("Null searchId");
    }
    this.searchId = searchId;
    if (resultFormat == null) {
      throw new NullPointerException("Null resultFormat");
    }
    this.resultFormat = resultFormat;
  }

  @Override
  public String id() {
    return id;
  }

  @JsonProperty
  @Override
  public DateTime createdAt() {
    return createdAt;
  }

  @JsonProperty("search_id")
  @Override
  public String searchId() {
    return searchId;
  }

  @JsonProperty("result_format")
  @Override
  public @NotEmpty ResultFormat resultFormat() {
    return resultFormat;
  }

  @Override
  public String toString() {
    return "SearchExportJob{"
        + "id=" + id + ", "
        + "createdAt=" + createdAt + ", "
        + "searchId=" + searchId + ", "
        + "resultFormat=" + resultFormat
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SearchExportJob) {
      SearchExportJob that = (SearchExportJob) o;
      return this.id.equals(that.id())
          && this.createdAt.equals(that.createdAt())
          && this.searchId.equals(that.searchId())
          && this.resultFormat.equals(that.resultFormat());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= id.hashCode();
    h$ *= 1000003;
    h$ ^= createdAt.hashCode();
    h$ *= 1000003;
    h$ ^= searchId.hashCode();
    h$ *= 1000003;
    h$ ^= resultFormat.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy