org.graylog2.streams.input.$AutoValue_StreamRuleInput Maven / Gradle / Ivy
package org.graylog2.streams.input;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_StreamRuleInput extends StreamRuleInput {
private final String title;
private final String name;
private final String id;
$AutoValue_StreamRuleInput(
String title,
String name,
String id) {
if (title == null) {
throw new NullPointerException("Null title");
}
this.title = title;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
}
@JsonProperty
@Override
public String title() {
return title;
}
@JsonProperty
@Override
public String name() {
return name;
}
@JsonProperty
@Override
public String id() {
return id;
}
@Override
public String toString() {
return "StreamRuleInput{"
+ "title=" + title + ", "
+ "name=" + name + ", "
+ "id=" + id
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof StreamRuleInput) {
StreamRuleInput that = (StreamRuleInput) o;
return this.title.equals(that.title())
&& this.name.equals(that.name())
&& this.id.equals(that.id());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= title.hashCode();
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= id.hashCode();
return h$;
}
static class Builder extends StreamRuleInput.Builder {
private String title;
private String name;
private String id;
Builder() {
}
@Override
public StreamRuleInput.Builder title(String title) {
if (title == null) {
throw new NullPointerException("Null title");
}
this.title = title;
return this;
}
@Override
public StreamRuleInput.Builder name(String name) {
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
return this;
}
@Override
public StreamRuleInput.Builder id(String id) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
return this;
}
@Override
public StreamRuleInput build() {
if (this.title == null
|| this.name == null
|| this.id == null) {
StringBuilder missing = new StringBuilder();
if (this.title == null) {
missing.append(" title");
}
if (this.name == null) {
missing.append(" name");
}
if (this.id == null) {
missing.append(" id");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_StreamRuleInput(
this.title,
this.name,
this.id);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy