// 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;

/** Defines values for ApplicationGatewayRequestRoutingRuleType. */
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 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);
    }

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