com.spotify.docker.client.messages.swarm.AutoValue_ReplicatedService 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_ReplicatedService extends ReplicatedService {
private final Long replicas;
private AutoValue_ReplicatedService(
Long replicas) {
this.replicas = replicas;
}
@JsonProperty(value = "Replicas")
@Override
public Long replicas() {
return replicas;
}
@Override
public String toString() {
return "ReplicatedService{"
+ "replicas=" + replicas
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ReplicatedService) {
ReplicatedService that = (ReplicatedService) o;
return (this.replicas.equals(that.replicas()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.replicas.hashCode();
return h;
}
static final class Builder extends ReplicatedService.Builder {
private Long replicas;
Builder() {
}
Builder(ReplicatedService source) {
this.replicas = source.replicas();
}
@Override
public ReplicatedService.Builder replicas(Long replicas) {
this.replicas = replicas;
return this;
}
@Override
public ReplicatedService build() {
String missing = "";
if (replicas == null) {
missing += " replicas";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ReplicatedService(
this.replicas);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy