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

com.atlan.model.enums.QueryStatus Maven / Gradle / Ivy

// Generated by delombok at Thu Oct 10 18:56:33 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
   Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.enums;

import com.fasterxml.jackson.annotation.JsonValue;

public enum QueryStatus implements AtlanEnum {
    /**
     * Query run has been requested, but not yet started or completed.
     */
    STARTED("started"), /**
     * Query run is in progress (running).
     */
    IN_PROGRESS("in-progress"), /**
     * Query has completed running, successfully.
     */
    COMPLETED("completed"), /**
     * Some other operation on the query has completed, successfully.
     * For example: it has been aborted or was only testing a connection.
     */
    OK("ok"), /**
     * There was an error running the query.
     */
    ERROR("error");
    @JsonValue
    private final String value;

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

    public static QueryStatus fromValue(String value) {
        for (QueryStatus b : QueryStatus.values()) {
            if (b.value.equals(value)) {
                return b;
            }
        }
        return null;
    }

    @Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getValue() {
        return this.value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy