Builder(ContainerSpec source) { this.image = source.image(); this.hostname = source.hostname(); this.labels = source.labels(); this.command = source.command(); this.args = source.args(); this.env = source.env(); this.dir = source.dir(); this.user = source.user(); this.groups = source.groups(); this.tty = source.tty(); this.mounts = source.mounts(); this.stopGracePeriod = source.stopGracePeriod(); this.healthcheck = source.healthcheck(); this.hosts = source.hosts(); this.secrets = source.secrets(); this.configs = source.configs(); this.dnsConfig = source.dnsConfig(); } @Override
public String getContainerImage() { return task.spec().containerSpec().image(); }
@JsonProperty("DNSConfig") final DnsConfig dnsConfig, @JsonProperty("Configs") final List<ConfigBind> configs) { final Builder builder = builder() .image(image) .hostname(hostname)
@JsonProperty("DNSConfig") final DnsConfig dnsConfig, @JsonProperty("Configs") final List<ConfigBind> configs) { final Builder builder = builder() .image(image) .hostname(hostname)
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof ContainerSpec) { ContainerSpec that = (ContainerSpec) o; return (this.image.equals(that.image())) && ((this.hostname == null) ? (that.hostname() == null) : this.hostname.equals(that.hostname())) && ((this.labels == null) ? (that.labels() == null) : this.labels.equals(that.labels())) && ((this.command == null) ? (that.command() == null) : this.command.equals(that.command())) && ((this.args == null) ? (that.args() == null) : this.args.equals(that.args())) && ((this.env == null) ? (that.env() == null) : this.env.equals(that.env())) && ((this.dir == null) ? (that.dir() == null) : this.dir.equals(that.dir())) && ((this.user == null) ? (that.user() == null) : this.user.equals(that.user())) && ((this.groups == null) ? (that.groups() == null) : this.groups.equals(that.groups())) && ((this.tty == null) ? (that.tty() == null) : this.tty.equals(that.tty())) && ((this.mounts == null) ? (that.mounts() == null) : this.mounts.equals(that.mounts())) && ((this.stopGracePeriod == null) ? (that.stopGracePeriod() == null) : this.stopGracePeriod.equals(that.stopGracePeriod())) && ((this.healthcheck == null) ? (that.healthcheck() == null) : this.healthcheck.equals(that.healthcheck())) && ((this.hosts == null) ? (that.hosts() == null) : this.hosts.equals(that.hosts())) && ((this.secrets == null) ? (that.secrets() == null) : this.secrets.equals(that.secrets())) && ((this.configs == null) ? (that.configs() == null) : this.configs.equals(that.configs())) && ((this.dnsConfig == null) ? (that.dnsConfig() == null) : this.dnsConfig.equals(that.dnsConfig())); } return false; }
Builder(ContainerSpec source) { this.image = source.image(); this.hostname = source.hostname(); this.labels = source.labels(); this.command = source.command(); this.args = source.args(); this.env = source.env(); this.dir = source.dir(); this.user = source.user(); this.groups = source.groups(); this.tty = source.tty(); this.mounts = source.mounts(); this.stopGracePeriod = source.stopGracePeriod(); this.healthcheck = source.healthcheck(); this.hosts = source.hosts(); this.secrets = source.secrets(); this.configs = source.configs(); this.dnsConfig = source.dnsConfig(); } @Override
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof ContainerSpec) { ContainerSpec that = (ContainerSpec) o; return (this.image.equals(that.image())) && ((this.hostname == null) ? (that.hostname() == null) : this.hostname.equals(that.hostname())) && ((this.labels == null) ? (that.labels() == null) : this.labels.equals(that.labels())) && ((this.command == null) ? (that.command() == null) : this.command.equals(that.command())) && ((this.args == null) ? (that.args() == null) : this.args.equals(that.args())) && ((this.env == null) ? (that.env() == null) : this.env.equals(that.env())) && ((this.dir == null) ? (that.dir() == null) : this.dir.equals(that.dir())) && ((this.user == null) ? (that.user() == null) : this.user.equals(that.user())) && ((this.groups == null) ? (that.groups() == null) : this.groups.equals(that.groups())) && ((this.tty == null) ? (that.tty() == null) : this.tty.equals(that.tty())) && ((this.mounts == null) ? (that.mounts() == null) : this.mounts.equals(that.mounts())) && ((this.stopGracePeriod == null) ? (that.stopGracePeriod() == null) : this.stopGracePeriod.equals(that.stopGracePeriod())) && ((this.healthcheck == null) ? (that.healthcheck() == null) : this.healthcheck.equals(that.healthcheck())) && ((this.hosts == null) ? (that.hosts() == null) : this.hosts.equals(that.hosts())) && ((this.secrets == null) ? (that.secrets() == null) : this.secrets.equals(that.secrets())) && ((this.configs == null) ? (that.configs() == null) : this.configs.equals(that.configs())) && ((this.dnsConfig == null) ? (that.dnsConfig() == null) : this.dnsConfig.equals(that.dnsConfig())); } return false; }