com.spotify.docker.client.messages.swarm.AutoValue_NodeInfo_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_NodeInfo_Criteria extends NodeInfo.Criteria {
private final String nodeId;
private final String label;
private final String nodeName;
private final String nodeRole;
private AutoValue_NodeInfo_Criteria(
@Nullable String nodeId,
@Nullable String label,
@Nullable String nodeName,
@Nullable String nodeRole) {
this.nodeId = nodeId;
this.label = label;
this.nodeName = nodeName;
this.nodeRole = nodeRole;
}
@Nullable
@Override
public String nodeId() {
return nodeId;
}
@Nullable
@Override
public String label() {
return label;
}
@Nullable
@Override
public String nodeName() {
return nodeName;
}
@Nullable
@Override
public String nodeRole() {
return nodeRole;
}
@Override
public String toString() {
return "Criteria{"
+ "nodeId=" + nodeId + ", "
+ "label=" + label + ", "
+ "nodeName=" + nodeName + ", "
+ "nodeRole=" + nodeRole
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NodeInfo.Criteria) {
NodeInfo.Criteria that = (NodeInfo.Criteria) o;
return ((this.nodeId == null) ? (that.nodeId() == null) : this.nodeId.equals(that.nodeId()))
&& ((this.label == null) ? (that.label() == null) : this.label.equals(that.label()))
&& ((this.nodeName == null) ? (that.nodeName() == null) : this.nodeName.equals(that.nodeName()))
&& ((this.nodeRole == null) ? (that.nodeRole() == null) : this.nodeRole.equals(that.nodeRole()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (nodeId == null) ? 0 : this.nodeId.hashCode();
h *= 1000003;
h ^= (label == null) ? 0 : this.label.hashCode();
h *= 1000003;
h ^= (nodeName == null) ? 0 : this.nodeName.hashCode();
h *= 1000003;
h ^= (nodeRole == null) ? 0 : this.nodeRole.hashCode();
return h;
}
static final class Builder extends NodeInfo.Criteria.Builder {
private String nodeId;
private String label;
private String nodeName;
private String nodeRole;
Builder() {
}
Builder(NodeInfo.Criteria source) {
this.nodeId = source.nodeId();
this.label = source.label();
this.nodeName = source.nodeName();
this.nodeRole = source.nodeRole();
}
@Override
public NodeInfo.Criteria.Builder nodeId(@Nullable String nodeId) {
this.nodeId = nodeId;
return this;
}
@Override
public NodeInfo.Criteria.Builder label(@Nullable String label) {
this.label = label;
return this;
}
@Override
public NodeInfo.Criteria.Builder nodeName(@Nullable String nodeName) {
this.nodeName = nodeName;
return this;
}
@Override
public NodeInfo.Criteria.Builder nodeRole(@Nullable String nodeRole) {
this.nodeRole = nodeRole;
return this;
}
@Override
public NodeInfo.Criteria build() {
return new AutoValue_NodeInfo_Criteria(
this.nodeId,
this.label,
this.nodeName,
this.nodeRole);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy