// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.ai.personalizer.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for EvaluationJobStatus. */
public final class EvaluationJobStatus extends ExpandableStringEnum<EvaluationJobStatus> {
    /** Static value completed for EvaluationJobStatus. */
    public static final EvaluationJobStatus COMPLETED = fromString("completed");

    /** Static value pending for EvaluationJobStatus. */
    public static final EvaluationJobStatus PENDING = fromString("pending");

    /** Static value failed for EvaluationJobStatus. */
    public static final EvaluationJobStatus FAILED = fromString("failed");

    /** Static value notSubmitted for EvaluationJobStatus. */
    public static final EvaluationJobStatus NOT_SUBMITTED = fromString("notSubmitted");

    /** Static value timeout for EvaluationJobStatus. */
    public static final EvaluationJobStatus TIMEOUT = fromString("timeout");

    /** Static value optimalPolicyApplied for EvaluationJobStatus. */
    public static final EvaluationJobStatus OPTIMAL_POLICY_APPLIED = fromString("optimalPolicyApplied");

    /** Static value onlinePolicyRetained for EvaluationJobStatus. */
    public static final EvaluationJobStatus ONLINE_POLICY_RETAINED = fromString("onlinePolicyRetained");

    /**
     * Creates or finds a EvaluationJobStatus from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding EvaluationJobStatus.
     */
    @JsonCreator
    public static EvaluationJobStatus fromString(String name) {
        return fromString(name, EvaluationJobStatus.class);
    }

    /**
     * Gets known EvaluationJobStatus values.
     *
     * @return known EvaluationJobStatus values.
     */
    public static Collection<EvaluationJobStatus> values() {
        return values(EvaluationJobStatus.class);
    }
}
