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

package com.azure.health.insights.clinicalmatching.models;

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

/** The status of the processing job. */
public final class JobStatus extends ExpandableStringEnum<JobStatus> {
    /** Static value notStarted for JobStatus. */
    public static final JobStatus NOT_STARTED = fromString("notStarted");

    /** Static value running for JobStatus. */
    public static final JobStatus RUNNING = fromString("running");

    /** Static value succeeded for JobStatus. */
    public static final JobStatus SUCCEEDED = fromString("succeeded");

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

    /** Static value partiallyCompleted for JobStatus. */
    public static final JobStatus PARTIALLY_COMPLETED = fromString("partiallyCompleted");

    /**
     * Creates a new instance of JobStatus value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public JobStatus() {}

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

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