org.graylog.plugins.sidecar.rest.models.AutoValue_CollectorSummary Maven / Gradle / Ivy
package org.graylog.plugins.sidecar.rest.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CollectorSummary extends CollectorSummary {
private final String id;
private final String name;
private final String serviceType;
private final String nodeOperatingSystem;
AutoValue_CollectorSummary(
String id,
String name,
String serviceType,
String nodeOperatingSystem) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
if (serviceType == null) {
throw new NullPointerException("Null serviceType");
}
this.serviceType = serviceType;
if (nodeOperatingSystem == null) {
throw new NullPointerException("Null nodeOperatingSystem");
}
this.nodeOperatingSystem = nodeOperatingSystem;
}
@JsonProperty("id")
@Override
public String id() {
return id;
}
@JsonProperty("name")
@Override
public String name() {
return name;
}
@JsonProperty("service_type")
@Override
public String serviceType() {
return serviceType;
}
@JsonProperty("node_operating_system")
@Override
public String nodeOperatingSystem() {
return nodeOperatingSystem;
}
@Override
public String toString() {
return "CollectorSummary{"
+ "id=" + id + ", "
+ "name=" + name + ", "
+ "serviceType=" + serviceType + ", "
+ "nodeOperatingSystem=" + nodeOperatingSystem
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CollectorSummary) {
CollectorSummary that = (CollectorSummary) o;
return this.id.equals(that.id())
&& this.name.equals(that.name())
&& this.serviceType.equals(that.serviceType())
&& this.nodeOperatingSystem.equals(that.nodeOperatingSystem());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= serviceType.hashCode();
h$ *= 1000003;
h$ ^= nodeOperatingSystem.hashCode();
return h$;
}
}