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