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

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

The newest version!

package org.jclouds.googlecomputeengine.domain;

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

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

  private final String id;
  private final Date creationTimestamp;
  private final URI selfLink;
  private final String name;
  private final String description;
  private final List backends;
  private final List healthChecks;
  private final int timeoutSec;
  private final int port;
  private final String protocol;
  private final String fingerprint;
  private final String portName;

  AutoValue_BackendService(
      String id,
      Date creationTimestamp,
      URI selfLink,
      String name,
      @Nullable String description,
      @Nullable List backends,
      @Nullable List healthChecks,
      int timeoutSec,
      int port,
      @Nullable String protocol,
      @Nullable String fingerprint,
      @Nullable String portName) {
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
    if (creationTimestamp == null) {
      throw new NullPointerException("Null creationTimestamp");
    }
    this.creationTimestamp = creationTimestamp;
    if (selfLink == null) {
      throw new NullPointerException("Null selfLink");
    }
    this.selfLink = selfLink;
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    this.description = description;
    this.backends = backends;
    this.healthChecks = healthChecks;
    this.timeoutSec = timeoutSec;
    this.port = port;
    this.protocol = protocol;
    this.fingerprint = fingerprint;
    this.portName = portName;
  }

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

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

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

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

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

  @Nullable
  @Override
  public List backends() {
    return backends;
  }

  @Nullable
  @Override
  public List healthChecks() {
    return healthChecks;
  }

  @Override
  public int timeoutSec() {
    return timeoutSec;
  }

  @Override
  public int port() {
    return port;
  }

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

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

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

  @Override
  public String toString() {
    return "BackendService{"
        + "id=" + id + ", "
        + "creationTimestamp=" + creationTimestamp + ", "
        + "selfLink=" + selfLink + ", "
        + "name=" + name + ", "
        + "description=" + description + ", "
        + "backends=" + backends + ", "
        + "healthChecks=" + healthChecks + ", "
        + "timeoutSec=" + timeoutSec + ", "
        + "port=" + port + ", "
        + "protocol=" + protocol + ", "
        + "fingerprint=" + fingerprint + ", "
        + "portName=" + portName
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof BackendService) {
      BackendService that = (BackendService) o;
      return (this.id.equals(that.id()))
           && (this.creationTimestamp.equals(that.creationTimestamp()))
           && (this.selfLink.equals(that.selfLink()))
           && (this.name.equals(that.name()))
           && ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
           && ((this.backends == null) ? (that.backends() == null) : this.backends.equals(that.backends()))
           && ((this.healthChecks == null) ? (that.healthChecks() == null) : this.healthChecks.equals(that.healthChecks()))
           && (this.timeoutSec == that.timeoutSec())
           && (this.port == that.port())
           && ((this.protocol == null) ? (that.protocol() == null) : this.protocol.equals(that.protocol()))
           && ((this.fingerprint == null) ? (that.fingerprint() == null) : this.fingerprint.equals(that.fingerprint()))
           && ((this.portName == null) ? (that.portName() == null) : this.portName.equals(that.portName()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.id.hashCode();
    h *= 1000003;
    h ^= this.creationTimestamp.hashCode();
    h *= 1000003;
    h ^= this.selfLink.hashCode();
    h *= 1000003;
    h ^= this.name.hashCode();
    h *= 1000003;
    h ^= (description == null) ? 0 : this.description.hashCode();
    h *= 1000003;
    h ^= (backends == null) ? 0 : this.backends.hashCode();
    h *= 1000003;
    h ^= (healthChecks == null) ? 0 : this.healthChecks.hashCode();
    h *= 1000003;
    h ^= this.timeoutSec;
    h *= 1000003;
    h ^= this.port;
    h *= 1000003;
    h ^= (protocol == null) ? 0 : this.protocol.hashCode();
    h *= 1000003;
    h ^= (fingerprint == null) ? 0 : this.fingerprint.hashCode();
    h *= 1000003;
    h ^= (portName == null) ? 0 : this.portName.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy