org.graylog2.rest.models.alarmcallbacks.requests.$AutoValue_CreateAlarmCallbackRequest Maven / Gradle / Ivy
package org.graylog2.rest.models.alarmcallbacks.requests;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_CreateAlarmCallbackRequest extends CreateAlarmCallbackRequest {
private final String type;
private final String title;
private final Map configuration;
$AutoValue_CreateAlarmCallbackRequest(
String type,
String title,
Map configuration) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (title == null) {
throw new NullPointerException("Null title");
}
this.title = title;
if (configuration == null) {
throw new NullPointerException("Null configuration");
}
this.configuration = configuration;
}
@JsonProperty("type")
@Override
public String type() {
return type;
}
@JsonProperty("title")
@Override
public String title() {
return title;
}
@JsonProperty("configuration")
@Override
public Map configuration() {
return configuration;
}
@Override
public String toString() {
return "CreateAlarmCallbackRequest{"
+ "type=" + type + ", "
+ "title=" + title + ", "
+ "configuration=" + configuration
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CreateAlarmCallbackRequest) {
CreateAlarmCallbackRequest that = (CreateAlarmCallbackRequest) o;
return this.type.equals(that.type())
&& this.title.equals(that.title())
&& this.configuration.equals(that.configuration());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= title.hashCode();
h$ *= 1000003;
h$ ^= configuration.hashCode();
return h$;
}
}