// 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 JobMatchModeType. */
public final class RouterJobMatchModeType extends ExpandableStringEnum<RouterJobMatchModeType> {
    /** Static value queueAndMatchMode for JobMatchModeType. */
    public static final RouterJobMatchModeType QUEUE_AND_MATCH_MODE = fromString("queueAndMatchMode");

    /** Static value scheduleAndSuspendMode for JobMatchModeType. */
    public static final RouterJobMatchModeType SCHEDULE_AND_SUSPEND_MODE = fromString("scheduleAndSuspendMode");

    /** Static value suspendMode for JobMatchModeType. */
    public static final RouterJobMatchModeType SUSPEND_MODE = fromString("suspendMode");

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

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