dev.openfga.sdk.api.model.NotFoundErrorCode Maven / Gradle / Ivy
/*
* OpenFGA
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
*
* The version of the OpenAPI document: 1.x
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package dev.openfga.sdk.api.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Gets or Sets NotFoundErrorCode
*/
public enum NotFoundErrorCode {
NO_NOT_FOUND_ERROR("no_not_found_error"),
UNDEFINED_ENDPOINT("undefined_endpoint"),
STORE_ID_NOT_FOUND("store_id_not_found"),
UNIMPLEMENTED("unimplemented"),
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
NotFoundErrorCode(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static NotFoundErrorCode fromValue(String value) {
for (NotFoundErrorCode b : NotFoundErrorCode.values()) {
if (b.value.equals(value)) {
return b;
}
}
return UNKNOWN_DEFAULT_OPEN_API;
}
/**
* Convert the instance into URL query string.
*
* @param prefix prefix of the query string
* @return URL query string
*/
public String toUrlQueryString(String prefix) {
if (prefix == null) {
prefix = "";
}
return String.format("%s=%s", prefix, this.toString());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy