// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.cognitiveservices.models;

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

/** Multiregion routing methods. */
public final class RoutingMethods extends ExpandableStringEnum<RoutingMethods> {
    /** Static value Priority for RoutingMethods. */
    public static final RoutingMethods PRIORITY = fromString("Priority");

    /** Static value Weighted for RoutingMethods. */
    public static final RoutingMethods WEIGHTED = fromString("Weighted");

    /** Static value Performance for RoutingMethods. */
    public static final RoutingMethods PERFORMANCE = fromString("Performance");

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

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

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