com.clinia.model.common.V1Cardinality 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.common;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
/** Gets or Sets v1Cardinality */
public enum V1Cardinality {
_0_("0:*"),
_0__1("0:1"),
_1__1("1:1"),
_1_("1:*");
private final String value;
V1Cardinality(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static V1Cardinality fromValue(String value) {
for (V1Cardinality b : V1Cardinality.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}