org.graylog2.contentpacks.model.entities.$AutoValue_PipelineRuleEntity Maven / Gradle / Ivy
package org.graylog2.contentpacks.model.entities;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
import org.graylog2.contentpacks.model.entities.references.ValueReference;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_PipelineRuleEntity extends PipelineRuleEntity {
private final ValueReference title;
@Nullable
private final ValueReference description;
private final ValueReference source;
$AutoValue_PipelineRuleEntity(
ValueReference title,
@Nullable ValueReference description,
ValueReference source) {
if (title == null) {
throw new NullPointerException("Null title");
}
this.title = title;
this.description = description;
if (source == null) {
throw new NullPointerException("Null source");
}
this.source = source;
}
@JsonProperty("title")
@Override
public ValueReference title() {
return title;
}
@JsonProperty("description")
@Nullable
@Override
public ValueReference description() {
return description;
}
@JsonProperty("source")
@Override
public ValueReference source() {
return source;
}
@Override
public String toString() {
return "PipelineRuleEntity{"
+ "title=" + title + ", "
+ "description=" + description + ", "
+ "source=" + source
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PipelineRuleEntity) {
PipelineRuleEntity that = (PipelineRuleEntity) o;
return this.title.equals(that.title())
&& (this.description == null ? that.description() == null : this.description.equals(that.description()))
&& this.source.equals(that.source());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= title.hashCode();
h$ *= 1000003;
h$ ^= (description == null) ? 0 : description.hashCode();
h$ *= 1000003;
h$ ^= source.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy