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