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

org.graylog2.rest.models.$AutoValue_HelloWorldResponse Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.rest.models;

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

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

  private final String clusterId;

  private final String nodeId;

  private final String version;

  private final String tagline;

  $AutoValue_HelloWorldResponse(
      String clusterId,
      String nodeId,
      String version,
      String tagline) {
    if (clusterId == null) {
      throw new NullPointerException("Null clusterId");
    }
    this.clusterId = clusterId;
    if (nodeId == null) {
      throw new NullPointerException("Null nodeId");
    }
    this.nodeId = nodeId;
    if (version == null) {
      throw new NullPointerException("Null version");
    }
    this.version = version;
    if (tagline == null) {
      throw new NullPointerException("Null tagline");
    }
    this.tagline = tagline;
  }

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

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

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

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

  @Override
  public String toString() {
    return "HelloWorldResponse{"
        + "clusterId=" + clusterId + ", "
        + "nodeId=" + nodeId + ", "
        + "version=" + version + ", "
        + "tagline=" + tagline
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof HelloWorldResponse) {
      HelloWorldResponse that = (HelloWorldResponse) o;
      return this.clusterId.equals(that.clusterId())
          && this.nodeId.equals(that.nodeId())
          && this.version.equals(that.version())
          && this.tagline.equals(that.tagline());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= clusterId.hashCode();
    h$ *= 1000003;
    h$ ^= nodeId.hashCode();
    h$ *= 1000003;
    h$ ^= version.hashCode();
    h$ *= 1000003;
    h$ ^= tagline.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy