All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fireblocks.sdk.model.ExecutionOperationStatus 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;

/** Gets or Sets ExecutionOperationStatus */
public enum ExecutionOperationStatus {
    PENDING("PENDING"),

    VALIDATION_IN_PROGRESS("VALIDATION_IN_PROGRESS"),

    VALIDATION_FAILED("VALIDATION_FAILED"),

    VALIDATION_COMPLETED("VALIDATION_COMPLETED"),

    PREVIEW_REQUESTED("PREVIEW_REQUESTED"),

    PREVIEW_IN_PROGRESS("PREVIEW_IN_PROGRESS"),

    PREVIEW_FAILED("PREVIEW_FAILED"),

    READY_FOR_LAUNCH("READY_FOR_LAUNCH"),

    EXECUTION_REQUESTED("EXECUTION_REQUESTED"),

    EXECUTION_IN_PROGRESS("EXECUTION_IN_PROGRESS"),

    EXECUTION_COMPLETED("EXECUTION_COMPLETED"),

    EXECUTION_FAILED("EXECUTION_FAILED");

    private String value;

    ExecutionOperationStatus(String value) {
        this.value = value;
    }

    @JsonValue
    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }

    @JsonCreator
    public static ExecutionOperationStatus fromValue(String value) {
        for (ExecutionOperationStatus b : ExecutionOperationStatus.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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy