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