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

package com.azure.resourcemanager.network.models;

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

/** Rule type. */
public final class ApplicationGatewayRequestRoutingRuleType
    extends ExpandableStringEnum<ApplicationGatewayRequestRoutingRuleType> {
    /** Static value Basic for ApplicationGatewayRequestRoutingRuleType. */
    public static final ApplicationGatewayRequestRoutingRuleType BASIC = fromString("Basic");

    /** Static value PathBasedRouting for ApplicationGatewayRequestRoutingRuleType. */
    public static final ApplicationGatewayRequestRoutingRuleType PATH_BASED_ROUTING = fromString("PathBasedRouting");

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

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

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