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

package com.azure.communication.jobrouter.implementation.models;

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

/** The status of the Job. */
public final class RouterJobStatusInternal extends ExpandableStringEnum<RouterJobStatusInternal> {
    /** Static value pendingClassification for RouterJobStatusInternal. */
    public static final RouterJobStatusInternal PENDING_CLASSIFICATION = fromString("pendingClassification");

    /** Static value queued for RouterJobStatusInternal. */
    public static final RouterJobStatusInternal QUEUED = fromString("queued");

    /** Static value assigned for RouterJobStatusInternal. */
    public static final RouterJobStatusInternal ASSIGNED = fromString("assigned");

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

    /** Static value closed for RouterJobStatusInternal. */
    public static final RouterJobStatusInternal CLOSED = fromString("closed");

    /** Static value cancelled for RouterJobStatusInternal. */
    public static final RouterJobStatusInternal CANCELLED = fromString("cancelled");

    /** Static value classificationFailed for RouterJobStatusInternal. */
    public static final RouterJobStatusInternal CLASSIFICATION_FAILED = fromString("classificationFailed");

    /** Static value created for RouterJobStatusInternal. */
    public static final RouterJobStatusInternal CREATED = fromString("created");

    /** Static value pendingSchedule for RouterJobStatusInternal. */
    public static final RouterJobStatusInternal PENDING_SCHEDULE = fromString("pendingSchedule");

    /** Static value scheduled for RouterJobStatusInternal. */
    public static final RouterJobStatusInternal SCHEDULED = fromString("scheduled");

    /** Static value scheduleFailed for RouterJobStatusInternal. */
    public static final RouterJobStatusInternal SCHEDULE_FAILED = fromString("scheduleFailed");

    /** Static value waitingForActivation for RouterJobStatusInternal. */
    public static final RouterJobStatusInternal WAITING_FOR_ACTIVATION = fromString("waitingForActivation");

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

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

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