com.fireblocks.sdk.model.UserRole Maven / Gradle / Ivy
/*
* Fireblocks API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.6.2
* 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 com.fireblocks.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/** The role of the user */
public enum UserRole {
OWNER("OWNER"),
ADMIN("ADMIN"),
SIGNER("SIGNER"),
COLLATERALS_SIGNER("COLLATERALS_SIGNER"),
EDITOR("EDITOR"),
APPROVER("APPROVER"),
VIEWER("VIEWER"),
NON_SIGNING_ADMIN("NON_SIGNING_ADMIN"),
AUDITOR("AUDITOR"),
NCW_ADMIN("NCW_ADMIN"),
NCW_SIGNER("NCW_SIGNER");
private String value;
UserRole(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static UserRole fromValue(String value) {
for (UserRole b : UserRole.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
/**
* 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());
}
}