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

package com.azure.resourcemanager.appservice.models;

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

/**
 * The type of route this is: DEFAULT - By default, every app has routes to the local address ranges specified by
 * RFC1918 INHERITED - Routes inherited from the real Virtual Network routes STATIC - Static route set on the app only
 *
 * <p>These values will be used for syncing an app's routes with those from a Virtual Network.
 */
public final class RouteType extends ExpandableStringEnum<RouteType> {
    /** Static value DEFAULT for RouteType. */
    public static final RouteType DEFAULT = fromString("DEFAULT");

    /** Static value INHERITED for RouteType. */
    public static final RouteType INHERITED = fromString("INHERITED");

    /** Static value STATIC for RouteType. */
    public static final RouteType STATIC = fromString("STATIC");

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

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

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