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

org.graylog.plugins.sidecar.rest.models.AutoValue_CollectorActions Maven / Gradle / Ivy

There is a newer version: 5.2.7
Show newest version


package org.graylog.plugins.sidecar.rest.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;
import org.joda.time.DateTime;
import org.mongojack.Id;
import org.mongojack.ObjectId;

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

  private final String id;

  private final String sidecarId;

  private final DateTime created;

  private final List action;

  AutoValue_CollectorActions(
      @Nullable String id,
      String sidecarId,
      DateTime created,
      List action) {
    this.id = id;
    if (sidecarId == null) {
      throw new NullPointerException("Null sidecarId");
    }
    this.sidecarId = sidecarId;
    if (created == null) {
      throw new NullPointerException("Null created");
    }
    this.created = created;
    if (action == null) {
      throw new NullPointerException("Null action");
    }
    this.action = action;
  }

  @JsonProperty(value = "id")
  @Nullable
  @Id
  @ObjectId
  @Override
  public String id() {
    return id;
  }

  @JsonProperty(value = "sidecar_id")
  @Override
  public String sidecarId() {
    return sidecarId;
  }

  @JsonProperty(value = "created")
  @Override
  public DateTime created() {
    return created;
  }

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

  @Override
  public String toString() {
    return "CollectorActions{"
         + "id=" + id + ", "
         + "sidecarId=" + sidecarId + ", "
         + "created=" + created + ", "
         + "action=" + action
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CollectorActions) {
      CollectorActions that = (CollectorActions) o;
      return ((this.id == null) ? (that.id() == null) : this.id.equals(that.id()))
           && (this.sidecarId.equals(that.sidecarId()))
           && (this.created.equals(that.created()))
           && (this.action.equals(that.action()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (id == null) ? 0 : id.hashCode();
    h$ *= 1000003;
    h$ ^= sidecarId.hashCode();
    h$ *= 1000003;
    h$ ^= created.hashCode();
    h$ *= 1000003;
    h$ ^= action.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy