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

org.jclouds.googlecomputeengine.domain.AutoValue_HttpHealthCheck Maven / Gradle / Ivy

The newest version!

package org.jclouds.googlecomputeengine.domain;

import java.net.URI;
import java.util.Date;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;

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

  private final String id;
  private final URI selfLink;
  private final Date creationTimestamp;
  private final String name;
  private final String description;
  private final String host;
  private final String requestPath;
  private final Integer port;
  private final Integer checkIntervalSec;
  private final Integer timeoutSec;
  private final Integer unhealthyThreshold;
  private final Integer healthyThreshold;

  AutoValue_HttpHealthCheck(
      String id,
      URI selfLink,
      Date creationTimestamp,
      String name,
      @Nullable String description,
      @Nullable String host,
      @Nullable String requestPath,
      @Nullable Integer port,
      @Nullable Integer checkIntervalSec,
      @Nullable Integer timeoutSec,
      @Nullable Integer unhealthyThreshold,
      @Nullable Integer healthyThreshold) {
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
    if (selfLink == null) {
      throw new NullPointerException("Null selfLink");
    }
    this.selfLink = selfLink;
    if (creationTimestamp == null) {
      throw new NullPointerException("Null creationTimestamp");
    }
    this.creationTimestamp = creationTimestamp;
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    this.description = description;
    this.host = host;
    this.requestPath = requestPath;
    this.port = port;
    this.checkIntervalSec = checkIntervalSec;
    this.timeoutSec = timeoutSec;
    this.unhealthyThreshold = unhealthyThreshold;
    this.healthyThreshold = healthyThreshold;
  }

  @Override
  public String id() {
    return id;
  }

  @Override
  public URI selfLink() {
    return selfLink;
  }

  @Override
  public Date creationTimestamp() {
    return creationTimestamp;
  }

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

  @Nullable
  @Override
  public String description() {
    return description;
  }

  @Nullable
  @Override
  public String host() {
    return host;
  }

  @Nullable
  @Override
  public String requestPath() {
    return requestPath;
  }

  @Nullable
  @Override
  public Integer port() {
    return port;
  }

  @Nullable
  @Override
  public Integer checkIntervalSec() {
    return checkIntervalSec;
  }

  @Nullable
  @Override
  public Integer timeoutSec() {
    return timeoutSec;
  }

  @Nullable
  @Override
  public Integer unhealthyThreshold() {
    return unhealthyThreshold;
  }

  @Nullable
  @Override
  public Integer healthyThreshold() {
    return healthyThreshold;
  }

  @Override
  public String toString() {
    return "HttpHealthCheck{"
        + "id=" + id + ", "
        + "selfLink=" + selfLink + ", "
        + "creationTimestamp=" + creationTimestamp + ", "
        + "name=" + name + ", "
        + "description=" + description + ", "
        + "host=" + host + ", "
        + "requestPath=" + requestPath + ", "
        + "port=" + port + ", "
        + "checkIntervalSec=" + checkIntervalSec + ", "
        + "timeoutSec=" + timeoutSec + ", "
        + "unhealthyThreshold=" + unhealthyThreshold + ", "
        + "healthyThreshold=" + healthyThreshold
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof HttpHealthCheck) {
      HttpHealthCheck that = (HttpHealthCheck) o;
      return (this.id.equals(that.id()))
           && (this.selfLink.equals(that.selfLink()))
           && (this.creationTimestamp.equals(that.creationTimestamp()))
           && (this.name.equals(that.name()))
           && ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
           && ((this.host == null) ? (that.host() == null) : this.host.equals(that.host()))
           && ((this.requestPath == null) ? (that.requestPath() == null) : this.requestPath.equals(that.requestPath()))
           && ((this.port == null) ? (that.port() == null) : this.port.equals(that.port()))
           && ((this.checkIntervalSec == null) ? (that.checkIntervalSec() == null) : this.checkIntervalSec.equals(that.checkIntervalSec()))
           && ((this.timeoutSec == null) ? (that.timeoutSec() == null) : this.timeoutSec.equals(that.timeoutSec()))
           && ((this.unhealthyThreshold == null) ? (that.unhealthyThreshold() == null) : this.unhealthyThreshold.equals(that.unhealthyThreshold()))
           && ((this.healthyThreshold == null) ? (that.healthyThreshold() == null) : this.healthyThreshold.equals(that.healthyThreshold()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.id.hashCode();
    h *= 1000003;
    h ^= this.selfLink.hashCode();
    h *= 1000003;
    h ^= this.creationTimestamp.hashCode();
    h *= 1000003;
    h ^= this.name.hashCode();
    h *= 1000003;
    h ^= (description == null) ? 0 : this.description.hashCode();
    h *= 1000003;
    h ^= (host == null) ? 0 : this.host.hashCode();
    h *= 1000003;
    h ^= (requestPath == null) ? 0 : this.requestPath.hashCode();
    h *= 1000003;
    h ^= (port == null) ? 0 : this.port.hashCode();
    h *= 1000003;
    h ^= (checkIntervalSec == null) ? 0 : this.checkIntervalSec.hashCode();
    h *= 1000003;
    h ^= (timeoutSec == null) ? 0 : this.timeoutSec.hashCode();
    h *= 1000003;
    h ^= (unhealthyThreshold == null) ? 0 : this.unhealthyThreshold.hashCode();
    h *= 1000003;
    h ^= (healthyThreshold == null) ? 0 : this.healthyThreshold.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy