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

org.graylog2.rest.models.system.indexer.responses.$AutoValue_IndexerClusterOverview Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.rest.models.system.indexer.responses;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;

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

  private final ClusterHealth health;

  private final String name;

  $AutoValue_IndexerClusterOverview(
      ClusterHealth health,
      String name) {
    if (health == null) {
      throw new NullPointerException("Null health");
    }
    this.health = health;
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
  }

  @JsonProperty("health")
  @Override
  public ClusterHealth health() {
    return health;
  }

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

  @Override
  public String toString() {
    return "IndexerClusterOverview{"
        + "health=" + health + ", "
        + "name=" + name
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof IndexerClusterOverview) {
      IndexerClusterOverview that = (IndexerClusterOverview) o;
      return this.health.equals(that.health())
          && this.name.equals(that.name());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= health.hashCode();
    h$ *= 1000003;
    h$ ^= name.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy