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

package com.azure.resourcemanager.automation.models;

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

/** Gets or sets the status of the job. */
public final class JobStatus extends ExpandableStringEnum<JobStatus> {
    /** Static value New for JobStatus. */
    public static final JobStatus NEW = fromString("New");

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * 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);
    }
}
