org.graylog2.rest.resources.system.indexer.AutoValue_IndexTemplatesResource_IndexTemplateResponse Maven / Gradle / Ivy
package org.graylog2.rest.resources.system.indexer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_IndexTemplatesResource_IndexTemplateResponse extends IndexTemplatesResource.IndexTemplateResponse {
private final String name;
private final Map template;
AutoValue_IndexTemplatesResource_IndexTemplateResponse(
String name,
Map template) {
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
if (template == null) {
throw new NullPointerException("Null template");
}
this.template = template;
}
@JsonProperty(value = "name")
@Override
public String name() {
return name;
}
@JsonProperty(value = "template")
@Override
public Map template() {
return template;
}
@Override
public String toString() {
return "IndexTemplateResponse{"
+ "name=" + name + ", "
+ "template=" + template
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof IndexTemplatesResource.IndexTemplateResponse) {
IndexTemplatesResource.IndexTemplateResponse that = (IndexTemplatesResource.IndexTemplateResponse) o;
return (this.name.equals(that.name()))
&& (this.template.equals(that.template()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= template.hashCode();
return h$;
}
}