com.fireblocks.sdk.model.PolicyStatus 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;
/**
* * SUCCESS - success * UNVALIDATED - not validated yet * INVALID_CONFIGURATION - at least one rule
* is invalid * PENDING - pending approval * PENDING_CONSOLE_APPROVAL - pending approval from the
* console app * AWAITING_QUORUM - pending quorum approval * UNHANDLED_ERROR - unhandled error
*/
public enum PolicyStatus {
SUCCESS("SUCCESS"),
UNVALIDATED("UNVALIDATED"),
INVALID_CONFIGURATION("INVALID_CONFIGURATION"),
PENDING("PENDING"),
PENDING_CONSOLE_APPROVAL("PENDING_CONSOLE_APPROVAL"),
AWAITING_QUORUM("AWAITING_QUORUM"),
UNHANDLED_ERROR("UNHANDLED_ERROR");
private String value;
PolicyStatus(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PolicyStatus fromValue(String value) {
for (PolicyStatus b : PolicyStatus.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());
}
}