org.fiware.ngsi.model.TimerelVO Maven / Gradle / Ivy
package org.fiware.ngsi.model;
@jakarta.annotation.Generated("org.openapitools.codegen.languages.MicronautCodegen")
@io.micronaut.core.annotation.Introspected
public enum TimerelVO {
BEFORE("before"),
AFTER("after"),
BETWEEN("between");
public static final java.lang.String BEFORE_VALUE = "before";
public static final java.lang.String AFTER_VALUE = "after";
public static final java.lang.String BETWEEN_VALUE = "between";
private final java.lang.String value;
private TimerelVO(java.lang.String value) {
this.value = value;
}
@com.fasterxml.jackson.annotation.JsonCreator
public static TimerelVO toEnum(java.lang.String value) {
return toOptional(value).orElseThrow(() -> new IllegalArgumentException("Unknown value '" + value + "'."));
}
public static java.util.Optional toOptional(java.lang.String value) {
return java.util.Arrays
.stream(values())
.filter(e -> e.value.equals(value))
.findAny();
}
@com.fasterxml.jackson.annotation.JsonValue
public java.lang.String getValue() {
return value;
}
}