com.spotify.docker.client.messages.swarm.AutoValue_Service_Criteria Maven / Gradle / Ivy
package com.spotify.docker.client.messages.swarm;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Service_Criteria extends Service.Criteria {
private final String serviceId;
private final String serviceName;
private AutoValue_Service_Criteria(
@Nullable String serviceId,
@Nullable String serviceName) {
this.serviceId = serviceId;
this.serviceName = serviceName;
}
@Nullable
@Override
public String serviceId() {
return serviceId;
}
@Nullable
@Override
public String serviceName() {
return serviceName;
}
@Override
public String toString() {
return "Criteria{"
+ "serviceId=" + serviceId + ", "
+ "serviceName=" + serviceName
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Service.Criteria) {
Service.Criteria that = (Service.Criteria) o;
return ((this.serviceId == null) ? (that.serviceId() == null) : this.serviceId.equals(that.serviceId()))
&& ((this.serviceName == null) ? (that.serviceName() == null) : this.serviceName.equals(that.serviceName()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (serviceId == null) ? 0 : this.serviceId.hashCode();
h *= 1000003;
h ^= (serviceName == null) ? 0 : this.serviceName.hashCode();
return h;
}
static final class Builder extends Service.Criteria.Builder {
private String serviceId;
private String serviceName;
Builder() {
}
Builder(Service.Criteria source) {
this.serviceId = source.serviceId();
this.serviceName = source.serviceName();
}
@Override
public Service.Criteria.Builder serviceId(@Nullable String serviceId) {
this.serviceId = serviceId;
return this;
}
@Override
public Service.Criteria.Builder serviceName(@Nullable String serviceName) {
this.serviceName = serviceName;
return this;
}
@Override
public Service.Criteria build() {
return new AutoValue_Service_Criteria(
this.serviceId,
this.serviceName);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy