org.graylog.plugins.sidecar.rest.requests.AutoValue_AdministrationRequest Maven / Gradle / Ivy
package org.graylog.plugins.sidecar.rest.requests;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AdministrationRequest extends AdministrationRequest {
private final int page;
private final int perPage;
private final String query;
private final Map filters;
AutoValue_AdministrationRequest(
int page,
int perPage,
String query,
Map filters) {
this.page = page;
this.perPage = perPage;
if (query == null) {
throw new NullPointerException("Null query");
}
this.query = query;
if (filters == null) {
throw new NullPointerException("Null filters");
}
this.filters = filters;
}
@JsonProperty
@Override
public int page() {
return page;
}
@JsonProperty
@Override
public int perPage() {
return perPage;
}
@JsonProperty
@Override
public String query() {
return query;
}
@JsonProperty
@Override
public Map filters() {
return filters;
}
@Override
public String toString() {
return "AdministrationRequest{"
+ "page=" + page + ", "
+ "perPage=" + perPage + ", "
+ "query=" + query + ", "
+ "filters=" + filters
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AdministrationRequest) {
AdministrationRequest that = (AdministrationRequest) o;
return this.page == that.page()
&& this.perPage == that.perPage()
&& this.query.equals(that.query())
&& this.filters.equals(that.filters());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= page;
h$ *= 1000003;
h$ ^= perPage;
h$ *= 1000003;
h$ ^= query.hashCode();
h$ *= 1000003;
h$ ^= filters.hashCode();
return h$;
}
}