org.graylog2.rest.models.system.lookup.$AutoValue_ErrorStatesRequest Maven / Gradle / Ivy
package org.graylog2.rest.models.system.lookup;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_ErrorStatesRequest extends ErrorStatesRequest {
private final Set tables;
private final Set dataAdapters;
private final Set caches;
$AutoValue_ErrorStatesRequest(
@Nullable Set tables,
@Nullable Set dataAdapters,
@Nullable Set caches) {
this.tables = tables;
this.dataAdapters = dataAdapters;
this.caches = caches;
}
@Nullable
@JsonProperty(value = "tables")
@Override
public Set tables() {
return tables;
}
@Nullable
@JsonProperty(value = "data_adapters")
@Override
public Set dataAdapters() {
return dataAdapters;
}
@Nullable
@JsonProperty(value = "caches")
@Override
public Set caches() {
return caches;
}
@Override
public String toString() {
return "ErrorStatesRequest{"
+ "tables=" + tables + ", "
+ "dataAdapters=" + dataAdapters + ", "
+ "caches=" + caches
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ErrorStatesRequest) {
ErrorStatesRequest that = (ErrorStatesRequest) o;
return ((this.tables == null) ? (that.tables() == null) : this.tables.equals(that.tables()))
&& ((this.dataAdapters == null) ? (that.dataAdapters() == null) : this.dataAdapters.equals(that.dataAdapters()))
&& ((this.caches == null) ? (that.caches() == null) : this.caches.equals(that.caches()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (tables == null) ? 0 : this.tables.hashCode();
h *= 1000003;
h ^= (dataAdapters == null) ? 0 : this.dataAdapters.hashCode();
h *= 1000003;
h ^= (caches == null) ? 0 : this.caches.hashCode();
return h;
}
static final class Builder extends ErrorStatesRequest.Builder {
private Set tables;
private Set dataAdapters;
private Set caches;
Builder() {
}
@Override
public ErrorStatesRequest.Builder tables(@Nullable Set tables) {
this.tables = tables;
return this;
}
@Override
public ErrorStatesRequest.Builder dataAdapters(@Nullable Set dataAdapters) {
this.dataAdapters = dataAdapters;
return this;
}
@Override
public ErrorStatesRequest.Builder caches(@Nullable Set caches) {
this.caches = caches;
return this;
}
@Override
public ErrorStatesRequest build() {
return new AutoValue_ErrorStatesRequest(
this.tables,
this.dataAdapters,
this.caches);
}
}
}