org.graylog.plugins.sidecar.rest.requests.AutoValue_NodeConfigurationRequest Maven / Gradle / Ivy
package org.graylog.plugins.sidecar.rest.requests;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.Generated;
import org.graylog.plugins.sidecar.rest.models.NodeConfiguration;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NodeConfigurationRequest extends NodeConfigurationRequest {
private final List nodes;
AutoValue_NodeConfigurationRequest(
List nodes) {
if (nodes == null) {
throw new NullPointerException("Null nodes");
}
this.nodes = nodes;
}
@JsonProperty
@Override
public List nodes() {
return nodes;
}
@Override
public String toString() {
return "NodeConfigurationRequest{"
+ "nodes=" + nodes
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NodeConfigurationRequest) {
NodeConfigurationRequest that = (NodeConfigurationRequest) o;
return (this.nodes.equals(that.nodes()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= nodes.hashCode();
return h$;
}
}