com.algolia.model.querysuggestions.LogLevel Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
package com.algolia.model.querysuggestions;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
/**
* Type of log entry. - `SKIP`. A query is skipped because it doesn't match the conditions for
* successful inclusion. For example, when a query doesn't generate enough search results. - `INFO`.
* An informative log entry. - `ERROR`. The Query Suggestions process encountered an error.
*/
public enum LogLevel {
SKIP("SKIP"),
INFO("INFO"),
ERROR("ERROR");
private final String value;
LogLevel(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static LogLevel fromValue(String value) {
for (LogLevel b : LogLevel.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy