com.clinia.model.registry.V1OperationAction Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.
package com.clinia.model.registry;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
/** The action to perform. */
public enum V1OperationAction {
CREATE("CREATE"),
UPSERT("UPSERT"),
DELETE("DELETE");
private final String value;
V1OperationAction(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static V1OperationAction fromValue(String value) {
for (V1OperationAction b : V1OperationAction.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}