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

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

The newest version!

package org.jclouds.docker.domain;

import shaded.com.google.common.base.Optional;
import java.util.Date;
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_Container extends Container {

  private final String id;
  private final Date created;
  private final String path;
  private final String name;
  private final List args;
  private final Config config;
  private final State state;
  private final String image;
  private final NetworkSettings networkSettings;
  private final String sysInitPath;
  private final String resolvConfPath;
  private final Map volumes;
  private final HostConfig hostConfig;
  private final String driver;
  private final String execDriver;
  private final Map volumesRW;
  private final String command;
  private final String status;
  private final List ports;
  private final String hostnamePath;
  private final String hostsPath;
  private final String mountLabel;
  private final String processLabel;
  private final Optional node;

  AutoValue_Container(
      String id,
      @Nullable Date created,
      @Nullable String path,
      @Nullable String name,
      List args,
      @Nullable Config config,
      @Nullable State state,
      @Nullable String image,
      @Nullable NetworkSettings networkSettings,
      @Nullable String sysInitPath,
      @Nullable String resolvConfPath,
      Map volumes,
      @Nullable HostConfig hostConfig,
      @Nullable String driver,
      @Nullable String execDriver,
      Map volumesRW,
      @Nullable String command,
      @Nullable String status,
      List ports,
      @Nullable String hostnamePath,
      @Nullable String hostsPath,
      @Nullable String mountLabel,
      @Nullable String processLabel,
      Optional node) {
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
    this.created = created;
    this.path = path;
    this.name = name;
    if (args == null) {
      throw new NullPointerException("Null args");
    }
    this.args = args;
    this.config = config;
    this.state = state;
    this.image = image;
    this.networkSettings = networkSettings;
    this.sysInitPath = sysInitPath;
    this.resolvConfPath = resolvConfPath;
    if (volumes == null) {
      throw new NullPointerException("Null volumes");
    }
    this.volumes = volumes;
    this.hostConfig = hostConfig;
    this.driver = driver;
    this.execDriver = execDriver;
    if (volumesRW == null) {
      throw new NullPointerException("Null volumesRW");
    }
    this.volumesRW = volumesRW;
    this.command = command;
    this.status = status;
    if (ports == null) {
      throw new NullPointerException("Null ports");
    }
    this.ports = ports;
    this.hostnamePath = hostnamePath;
    this.hostsPath = hostsPath;
    this.mountLabel = mountLabel;
    this.processLabel = processLabel;
    if (node == null) {
      throw new NullPointerException("Null node");
    }
    this.node = node;
  }

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

  @Nullable
  @Override
  public Date created() {
    return created;
  }

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

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

  @Override
  public List args() {
    return args;
  }

  @Nullable
  @Override
  public Config config() {
    return config;
  }

  @Nullable
  @Override
  public State state() {
    return state;
  }

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

  @Nullable
  @Override
  public NetworkSettings networkSettings() {
    return networkSettings;
  }

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

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

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

  @Nullable
  @Override
  public HostConfig hostConfig() {
    return hostConfig;
  }

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

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

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

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

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

  @Override
  public List ports() {
    return ports;
  }

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

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

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

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

  @Override
  public Optional node() {
    return node;
  }

  @Override
  public String toString() {
    return "Container{"
        + "id=" + id + ", "
        + "created=" + created + ", "
        + "path=" + path + ", "
        + "name=" + name + ", "
        + "args=" + args + ", "
        + "config=" + config + ", "
        + "state=" + state + ", "
        + "image=" + image + ", "
        + "networkSettings=" + networkSettings + ", "
        + "sysInitPath=" + sysInitPath + ", "
        + "resolvConfPath=" + resolvConfPath + ", "
        + "volumes=" + volumes + ", "
        + "hostConfig=" + hostConfig + ", "
        + "driver=" + driver + ", "
        + "execDriver=" + execDriver + ", "
        + "volumesRW=" + volumesRW + ", "
        + "command=" + command + ", "
        + "status=" + status + ", "
        + "ports=" + ports + ", "
        + "hostnamePath=" + hostnamePath + ", "
        + "hostsPath=" + hostsPath + ", "
        + "mountLabel=" + mountLabel + ", "
        + "processLabel=" + processLabel + ", "
        + "node=" + node
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Container) {
      Container that = (Container) o;
      return (this.id.equals(that.id()))
           && ((this.created == null) ? (that.created() == null) : this.created.equals(that.created()))
           && ((this.path == null) ? (that.path() == null) : this.path.equals(that.path()))
           && ((this.name == null) ? (that.name() == null) : this.name.equals(that.name()))
           && (this.args.equals(that.args()))
           && ((this.config == null) ? (that.config() == null) : this.config.equals(that.config()))
           && ((this.state == null) ? (that.state() == null) : this.state.equals(that.state()))
           && ((this.image == null) ? (that.image() == null) : this.image.equals(that.image()))
           && ((this.networkSettings == null) ? (that.networkSettings() == null) : this.networkSettings.equals(that.networkSettings()))
           && ((this.sysInitPath == null) ? (that.sysInitPath() == null) : this.sysInitPath.equals(that.sysInitPath()))
           && ((this.resolvConfPath == null) ? (that.resolvConfPath() == null) : this.resolvConfPath.equals(that.resolvConfPath()))
           && (this.volumes.equals(that.volumes()))
           && ((this.hostConfig == null) ? (that.hostConfig() == null) : this.hostConfig.equals(that.hostConfig()))
           && ((this.driver == null) ? (that.driver() == null) : this.driver.equals(that.driver()))
           && ((this.execDriver == null) ? (that.execDriver() == null) : this.execDriver.equals(that.execDriver()))
           && (this.volumesRW.equals(that.volumesRW()))
           && ((this.command == null) ? (that.command() == null) : this.command.equals(that.command()))
           && ((this.status == null) ? (that.status() == null) : this.status.equals(that.status()))
           && (this.ports.equals(that.ports()))
           && ((this.hostnamePath == null) ? (that.hostnamePath() == null) : this.hostnamePath.equals(that.hostnamePath()))
           && ((this.hostsPath == null) ? (that.hostsPath() == null) : this.hostsPath.equals(that.hostsPath()))
           && ((this.mountLabel == null) ? (that.mountLabel() == null) : this.mountLabel.equals(that.mountLabel()))
           && ((this.processLabel == null) ? (that.processLabel() == null) : this.processLabel.equals(that.processLabel()))
           && (this.node.equals(that.node()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.id.hashCode();
    h *= 1000003;
    h ^= (created == null) ? 0 : this.created.hashCode();
    h *= 1000003;
    h ^= (path == null) ? 0 : this.path.hashCode();
    h *= 1000003;
    h ^= (name == null) ? 0 : this.name.hashCode();
    h *= 1000003;
    h ^= this.args.hashCode();
    h *= 1000003;
    h ^= (config == null) ? 0 : this.config.hashCode();
    h *= 1000003;
    h ^= (state == null) ? 0 : this.state.hashCode();
    h *= 1000003;
    h ^= (image == null) ? 0 : this.image.hashCode();
    h *= 1000003;
    h ^= (networkSettings == null) ? 0 : this.networkSettings.hashCode();
    h *= 1000003;
    h ^= (sysInitPath == null) ? 0 : this.sysInitPath.hashCode();
    h *= 1000003;
    h ^= (resolvConfPath == null) ? 0 : this.resolvConfPath.hashCode();
    h *= 1000003;
    h ^= this.volumes.hashCode();
    h *= 1000003;
    h ^= (hostConfig == null) ? 0 : this.hostConfig.hashCode();
    h *= 1000003;
    h ^= (driver == null) ? 0 : this.driver.hashCode();
    h *= 1000003;
    h ^= (execDriver == null) ? 0 : this.execDriver.hashCode();
    h *= 1000003;
    h ^= this.volumesRW.hashCode();
    h *= 1000003;
    h ^= (command == null) ? 0 : this.command.hashCode();
    h *= 1000003;
    h ^= (status == null) ? 0 : this.status.hashCode();
    h *= 1000003;
    h ^= this.ports.hashCode();
    h *= 1000003;
    h ^= (hostnamePath == null) ? 0 : this.hostnamePath.hashCode();
    h *= 1000003;
    h ^= (hostsPath == null) ? 0 : this.hostsPath.hashCode();
    h *= 1000003;
    h ^= (mountLabel == null) ? 0 : this.mountLabel.hashCode();
    h *= 1000003;
    h ^= (processLabel == null) ? 0 : this.processLabel.hashCode();
    h *= 1000003;
    h ^= this.node.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy