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

org.graylog.plugins.sidecar.rest.models.AutoValue_CollectorStatus 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 javax.annotation.Generated;

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

  private final String collectorId;

  private final int status;

  private final String message;

  private final String verboseMessage;

  AutoValue_CollectorStatus(
      String collectorId,
      int status,
      String message,
      String verboseMessage) {
    if (collectorId == null) {
      throw new NullPointerException("Null collectorId");
    }
    this.collectorId = collectorId;
    this.status = status;
    if (message == null) {
      throw new NullPointerException("Null message");
    }
    this.message = message;
    if (verboseMessage == null) {
      throw new NullPointerException("Null verboseMessage");
    }
    this.verboseMessage = verboseMessage;
  }

  @JsonProperty(value = "collector_id")
  @Override
  public String collectorId() {
    return collectorId;
  }

  @JsonProperty(value = "status")
  @Override
  public int status() {
    return status;
  }

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

  @JsonProperty(value = "verbose_message")
  @Override
  public String verboseMessage() {
    return verboseMessage;
  }

  @Override
  public String toString() {
    return "CollectorStatus{"
         + "collectorId=" + collectorId + ", "
         + "status=" + status + ", "
         + "message=" + message + ", "
         + "verboseMessage=" + verboseMessage
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CollectorStatus) {
      CollectorStatus that = (CollectorStatus) o;
      return (this.collectorId.equals(that.collectorId()))
           && (this.status == that.status())
           && (this.message.equals(that.message()))
           && (this.verboseMessage.equals(that.verboseMessage()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= collectorId.hashCode();
    h$ *= 1000003;
    h$ ^= status;
    h$ *= 1000003;
    h$ ^= message.hashCode();
    h$ *= 1000003;
    h$ ^= verboseMessage.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy