org.graylog2.contentpacks.model.entities.$AutoValue_SidecarCollectorConfigurationEntity Maven / Gradle / Ivy
package org.graylog2.contentpacks.model.entities;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
import org.graylog2.contentpacks.model.entities.references.ValueReference;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_SidecarCollectorConfigurationEntity extends SidecarCollectorConfigurationEntity {
private final ValueReference collectorId;
private final ValueReference title;
private final ValueReference color;
private final ValueReference template;
$AutoValue_SidecarCollectorConfigurationEntity(
ValueReference collectorId,
ValueReference title,
ValueReference color,
ValueReference template) {
if (collectorId == null) {
throw new NullPointerException("Null collectorId");
}
this.collectorId = collectorId;
if (title == null) {
throw new NullPointerException("Null title");
}
this.title = title;
if (color == null) {
throw new NullPointerException("Null color");
}
this.color = color;
if (template == null) {
throw new NullPointerException("Null template");
}
this.template = template;
}
@JsonProperty("collector_id")
@Override
public ValueReference collectorId() {
return collectorId;
}
@JsonProperty("title")
@Override
public ValueReference title() {
return title;
}
@JsonProperty("color")
@Override
public ValueReference color() {
return color;
}
@JsonProperty("template")
@Override
public ValueReference template() {
return template;
}
@Override
public String toString() {
return "SidecarCollectorConfigurationEntity{"
+ "collectorId=" + collectorId + ", "
+ "title=" + title + ", "
+ "color=" + color + ", "
+ "template=" + template
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SidecarCollectorConfigurationEntity) {
SidecarCollectorConfigurationEntity that = (SidecarCollectorConfigurationEntity) o;
return this.collectorId.equals(that.collectorId())
&& this.title.equals(that.title())
&& this.color.equals(that.color())
&& this.template.equals(that.template());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= collectorId.hashCode();
h$ *= 1000003;
h$ ^= title.hashCode();
h$ *= 1000003;
h$ ^= color.hashCode();
h$ *= 1000003;
h$ ^= template.hashCode();
return h$;
}
}