org.graylog.events.contentpack.entities.AutoValue_HttpEventNotificationConfigEntity Maven / Gradle / Ivy
package org.graylog.events.contentpack.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")
final class AutoValue_HttpEventNotificationConfigEntity extends HttpEventNotificationConfigEntity {
private final String type;
private final ValueReference url;
private AutoValue_HttpEventNotificationConfigEntity(
String type,
ValueReference url) {
this.type = type;
this.url = url;
}
@JsonProperty("type")
@Override
public String type() {
return type;
}
@JsonProperty("url")
@Override
public ValueReference url() {
return url;
}
@Override
public String toString() {
return "HttpEventNotificationConfigEntity{"
+ "type=" + type + ", "
+ "url=" + url
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof HttpEventNotificationConfigEntity) {
HttpEventNotificationConfigEntity that = (HttpEventNotificationConfigEntity) o;
return this.type.equals(that.type())
&& this.url.equals(that.url());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= url.hashCode();
return h$;
}
@Override
public HttpEventNotificationConfigEntity.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends HttpEventNotificationConfigEntity.Builder {
private String type;
private ValueReference url;
Builder() {
}
private Builder(HttpEventNotificationConfigEntity source) {
this.type = source.type();
this.url = source.url();
}
@Override
public HttpEventNotificationConfigEntity.Builder type(String type) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
return this;
}
@Override
public HttpEventNotificationConfigEntity.Builder url(ValueReference url) {
if (url == null) {
throw new NullPointerException("Null url");
}
this.url = url;
return this;
}
@Override
public HttpEventNotificationConfigEntity build() {
if (this.type == null
|| this.url == null) {
StringBuilder missing = new StringBuilder();
if (this.type == null) {
missing.append(" type");
}
if (this.url == null) {
missing.append(" url");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_HttpEventNotificationConfigEntity(
this.type,
this.url);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy