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

package com.azure.resourcemanager.storagemover.models;

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

/** The current status of the Job Run in a non-terminal state, if exists. */
public final class JobRunStatus extends ExpandableStringEnum<JobRunStatus> {
    /** Static value Queued for JobRunStatus. */
    public static final JobRunStatus QUEUED = fromString("Queued");

    /** Static value Started for JobRunStatus. */
    public static final JobRunStatus STARTED = fromString("Started");

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

    /** Static value CancelRequested for JobRunStatus. */
    public static final JobRunStatus CANCEL_REQUESTED = fromString("CancelRequested");

    /** Static value Canceling for JobRunStatus. */
    public static final JobRunStatus CANCELING = fromString("Canceling");

    /** Static value Canceled for JobRunStatus. */
    public static final JobRunStatus CANCELED = fromString("Canceled");

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

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

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

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

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