org.graylog2.contentstream.rest.AutoValue_ContentStreamSettings Maven / Gradle / Ivy
package org.graylog2.contentstream.rest;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ContentStreamSettings extends ContentStreamSettings {
private final Boolean contentStreamEnabled;
private final Boolean releasesEnabled;
private final List topics;
private AutoValue_ContentStreamSettings(
Boolean contentStreamEnabled,
Boolean releasesEnabled,
List topics) {
this.contentStreamEnabled = contentStreamEnabled;
this.releasesEnabled = releasesEnabled;
this.topics = topics;
}
@JsonProperty("content_stream_enabled")
@Override
public Boolean contentStreamEnabled() {
return contentStreamEnabled;
}
@JsonProperty("releases_enabled")
@Override
public Boolean releasesEnabled() {
return releasesEnabled;
}
@JsonProperty("content_stream_topics")
@Override
public List topics() {
return topics;
}
@Override
public String toString() {
return "ContentStreamSettings{"
+ "contentStreamEnabled=" + contentStreamEnabled + ", "
+ "releasesEnabled=" + releasesEnabled + ", "
+ "topics=" + topics
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ContentStreamSettings) {
ContentStreamSettings that = (ContentStreamSettings) o;
return this.contentStreamEnabled.equals(that.contentStreamEnabled())
&& this.releasesEnabled.equals(that.releasesEnabled())
&& this.topics.equals(that.topics());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= contentStreamEnabled.hashCode();
h$ *= 1000003;
h$ ^= releasesEnabled.hashCode();
h$ *= 1000003;
h$ ^= topics.hashCode();
return h$;
}
static final class Builder extends ContentStreamSettings.Builder {
private Boolean contentStreamEnabled;
private Boolean releasesEnabled;
private List topics;
Builder() {
}
@Override
public ContentStreamSettings.Builder contentStreamEnabled(Boolean contentStreamEnabled) {
if (contentStreamEnabled == null) {
throw new NullPointerException("Null contentStreamEnabled");
}
this.contentStreamEnabled = contentStreamEnabled;
return this;
}
@Override
public ContentStreamSettings.Builder releasesEnabled(Boolean releasesEnabled) {
if (releasesEnabled == null) {
throw new NullPointerException("Null releasesEnabled");
}
this.releasesEnabled = releasesEnabled;
return this;
}
@Override
public ContentStreamSettings.Builder topics(List topics) {
if (topics == null) {
throw new NullPointerException("Null topics");
}
this.topics = topics;
return this;
}
@Override
public ContentStreamSettings build() {
if (this.contentStreamEnabled == null
|| this.releasesEnabled == null
|| this.topics == null) {
StringBuilder missing = new StringBuilder();
if (this.contentStreamEnabled == null) {
missing.append(" contentStreamEnabled");
}
if (this.releasesEnabled == null) {
missing.append(" releasesEnabled");
}
if (this.topics == null) {
missing.append(" topics");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ContentStreamSettings(
this.contentStreamEnabled,
this.releasesEnabled,
this.topics);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy