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

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

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.sidecar.rest.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableSet;
import javax.annotation.processing.Generated;

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

  private final int status;

  private final String message;

  private final ImmutableSet collectors;

  AutoValue_CollectorStatusList(
      int status,
      String message,
      ImmutableSet collectors) {
    this.status = status;
    if (message == null) {
      throw new NullPointerException("Null message");
    }
    this.message = message;
    if (collectors == null) {
      throw new NullPointerException("Null collectors");
    }
    this.collectors = collectors;
  }

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

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

  @JsonProperty("collectors")
  @Override
  public ImmutableSet collectors() {
    return collectors;
  }

  @Override
  public String toString() {
    return "CollectorStatusList{"
        + "status=" + status + ", "
        + "message=" + message + ", "
        + "collectors=" + collectors
        + "}";
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy