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

org.jclouds.docker.domain.AutoValue_HostConfig Maven / Gradle / Ivy

The newest version!

package org.jclouds.docker.domain;

import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;

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

  private final String containerIDFile;
  private final List binds;
  private final List> lxcConf;
  private final boolean privileged;
  private final List dns;
  private final List dnsSearch;
  private final Map>> portBindings;
  private final List links;
  private final List extraHosts;
  private final boolean publishAllPorts;
  private final List volumesFrom;
  private final String networkMode;
  private final List securityOpt;
  private final List capAdd;
  private final List capDrop;
  private final Map restartPolicy;

  AutoValue_HostConfig(
      @Nullable String containerIDFile,
      @Nullable List binds,
      List> lxcConf,
      boolean privileged,
      @Nullable List dns,
      @Nullable List dnsSearch,
      Map>> portBindings,
      @Nullable List links,
      @Nullable List extraHosts,
      boolean publishAllPorts,
      @Nullable List volumesFrom,
      @Nullable String networkMode,
      @Nullable List securityOpt,
      @Nullable List capAdd,
      @Nullable List capDrop,
      Map restartPolicy) {
    this.containerIDFile = containerIDFile;
    this.binds = binds;
    if (lxcConf == null) {
      throw new NullPointerException("Null lxcConf");
    }
    this.lxcConf = lxcConf;
    this.privileged = privileged;
    this.dns = dns;
    this.dnsSearch = dnsSearch;
    if (portBindings == null) {
      throw new NullPointerException("Null portBindings");
    }
    this.portBindings = portBindings;
    this.links = links;
    this.extraHosts = extraHosts;
    this.publishAllPorts = publishAllPorts;
    this.volumesFrom = volumesFrom;
    this.networkMode = networkMode;
    this.securityOpt = securityOpt;
    this.capAdd = capAdd;
    this.capDrop = capDrop;
    if (restartPolicy == null) {
      throw new NullPointerException("Null restartPolicy");
    }
    this.restartPolicy = restartPolicy;
  }

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

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

  @Override
  public List> lxcConf() {
    return lxcConf;
  }

  @Override
  public boolean privileged() {
    return privileged;
  }

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

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

  @Override
  public Map>> portBindings() {
    return portBindings;
  }

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

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

  @Override
  public boolean publishAllPorts() {
    return publishAllPorts;
  }

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

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

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

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

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

  @Override
  public Map restartPolicy() {
    return restartPolicy;
  }

  @Override
  public String toString() {
    return "HostConfig{"
        + "containerIDFile=" + containerIDFile + ", "
        + "binds=" + binds + ", "
        + "lxcConf=" + lxcConf + ", "
        + "privileged=" + privileged + ", "
        + "dns=" + dns + ", "
        + "dnsSearch=" + dnsSearch + ", "
        + "portBindings=" + portBindings + ", "
        + "links=" + links + ", "
        + "extraHosts=" + extraHosts + ", "
        + "publishAllPorts=" + publishAllPorts + ", "
        + "volumesFrom=" + volumesFrom + ", "
        + "networkMode=" + networkMode + ", "
        + "securityOpt=" + securityOpt + ", "
        + "capAdd=" + capAdd + ", "
        + "capDrop=" + capDrop + ", "
        + "restartPolicy=" + restartPolicy
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof HostConfig) {
      HostConfig that = (HostConfig) o;
      return ((this.containerIDFile == null) ? (that.containerIDFile() == null) : this.containerIDFile.equals(that.containerIDFile()))
           && ((this.binds == null) ? (that.binds() == null) : this.binds.equals(that.binds()))
           && (this.lxcConf.equals(that.lxcConf()))
           && (this.privileged == that.privileged())
           && ((this.dns == null) ? (that.dns() == null) : this.dns.equals(that.dns()))
           && ((this.dnsSearch == null) ? (that.dnsSearch() == null) : this.dnsSearch.equals(that.dnsSearch()))
           && (this.portBindings.equals(that.portBindings()))
           && ((this.links == null) ? (that.links() == null) : this.links.equals(that.links()))
           && ((this.extraHosts == null) ? (that.extraHosts() == null) : this.extraHosts.equals(that.extraHosts()))
           && (this.publishAllPorts == that.publishAllPorts())
           && ((this.volumesFrom == null) ? (that.volumesFrom() == null) : this.volumesFrom.equals(that.volumesFrom()))
           && ((this.networkMode == null) ? (that.networkMode() == null) : this.networkMode.equals(that.networkMode()))
           && ((this.securityOpt == null) ? (that.securityOpt() == null) : this.securityOpt.equals(that.securityOpt()))
           && ((this.capAdd == null) ? (that.capAdd() == null) : this.capAdd.equals(that.capAdd()))
           && ((this.capDrop == null) ? (that.capDrop() == null) : this.capDrop.equals(that.capDrop()))
           && (this.restartPolicy.equals(that.restartPolicy()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= (containerIDFile == null) ? 0 : this.containerIDFile.hashCode();
    h *= 1000003;
    h ^= (binds == null) ? 0 : this.binds.hashCode();
    h *= 1000003;
    h ^= this.lxcConf.hashCode();
    h *= 1000003;
    h ^= this.privileged ? 1231 : 1237;
    h *= 1000003;
    h ^= (dns == null) ? 0 : this.dns.hashCode();
    h *= 1000003;
    h ^= (dnsSearch == null) ? 0 : this.dnsSearch.hashCode();
    h *= 1000003;
    h ^= this.portBindings.hashCode();
    h *= 1000003;
    h ^= (links == null) ? 0 : this.links.hashCode();
    h *= 1000003;
    h ^= (extraHosts == null) ? 0 : this.extraHosts.hashCode();
    h *= 1000003;
    h ^= this.publishAllPorts ? 1231 : 1237;
    h *= 1000003;
    h ^= (volumesFrom == null) ? 0 : this.volumesFrom.hashCode();
    h *= 1000003;
    h ^= (networkMode == null) ? 0 : this.networkMode.hashCode();
    h *= 1000003;
    h ^= (securityOpt == null) ? 0 : this.securityOpt.hashCode();
    h *= 1000003;
    h ^= (capAdd == null) ? 0 : this.capAdd.hashCode();
    h *= 1000003;
    h ^= (capDrop == null) ? 0 : this.capDrop.hashCode();
    h *= 1000003;
    h ^= this.restartPolicy.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy