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

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

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

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

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