com.spotify.docker.client.messages.swarm.AutoValue_UpdateConfig Maven / Gradle / Ivy
package com.spotify.docker.client.messages.swarm;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_UpdateConfig extends UpdateConfig {
private final Long parallelism;
private final Long delay;
private final String failureAction;
AutoValue_UpdateConfig(
Long parallelism,
Long delay,
String failureAction) {
if (parallelism == null) {
throw new NullPointerException("Null parallelism");
}
this.parallelism = parallelism;
if (delay == null) {
throw new NullPointerException("Null delay");
}
this.delay = delay;
if (failureAction == null) {
throw new NullPointerException("Null failureAction");
}
this.failureAction = failureAction;
}
@JsonProperty(value = "Parallelism")
@Override
public Long parallelism() {
return parallelism;
}
@JsonProperty(value = "Delay")
@Override
public Long delay() {
return delay;
}
@JsonProperty(value = "FailureAction")
@Override
public String failureAction() {
return failureAction;
}
@Override
public String toString() {
return "UpdateConfig{"
+ "parallelism=" + parallelism + ", "
+ "delay=" + delay + ", "
+ "failureAction=" + failureAction
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof UpdateConfig) {
UpdateConfig that = (UpdateConfig) o;
return (this.parallelism.equals(that.parallelism()))
&& (this.delay.equals(that.delay()))
&& (this.failureAction.equals(that.failureAction()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.parallelism.hashCode();
h *= 1000003;
h ^= this.delay.hashCode();
h *= 1000003;
h ^= this.failureAction.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy