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

    /** Static value expired for RouterWorkerSelectorStatus. */
    public static final RouterWorkerSelectorStatus EXPIRED = fromString("expired");

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

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