// 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.models;

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

/** Defines values for RouterWorkerStateSelector. */
public final class RouterWorkerStateSelector extends ExpandableStringEnum<RouterWorkerStateSelector> {
    /** Static value active for RouterWorkerStateSelector. */
    public static final RouterWorkerStateSelector ACTIVE = fromString("active");

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

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

    /** Static value all for RouterWorkerStateSelector. */
    public static final RouterWorkerStateSelector ALL = fromString("all");

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

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