// 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 current state of the worker. */
public final class RouterWorkerStateInternal extends ExpandableStringEnum<RouterWorkerStateInternal> {
    /** Static value active for RouterWorkerStateInternal. */
    public static final RouterWorkerStateInternal ACTIVE = fromString("active");

    /** Static value draining for RouterWorkerStateInternal. */
    public static final RouterWorkerStateInternal DRAINING = fromString("draining");

    /** Static value inactive for RouterWorkerStateInternal. */
    public static final RouterWorkerStateInternal INACTIVE = fromString("inactive");

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

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

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