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

org.graylog2.rest.models.system.urlwhitelist.$AutoValue_WhitelistCheckResponse Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
package org.graylog2.rest.models.system.urlwhitelist;

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

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

  private final String url;

  private final boolean isWhitelisted;

  $AutoValue_WhitelistCheckResponse(
      String url,
      boolean isWhitelisted) {
    if (url == null) {
      throw new NullPointerException("Null url");
    }
    this.url = url;
    this.isWhitelisted = isWhitelisted;
  }

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

  @JsonProperty("is_whitelisted")
  @Override
  public boolean isWhitelisted() {
    return isWhitelisted;
  }

  @Override
  public String toString() {
    return "WhitelistCheckResponse{"
        + "url=" + url + ", "
        + "isWhitelisted=" + isWhitelisted
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof WhitelistCheckResponse) {
      WhitelistCheckResponse that = (WhitelistCheckResponse) o;
      return this.url.equals(that.url())
          && this.isWhitelisted == that.isWhitelisted();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= url.hashCode();
    h$ *= 1000003;
    h$ ^= isWhitelisted ? 1231 : 1237;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy