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

/** The peering type. */
public final class ExpressRoutePeeringType extends ExpandableStringEnum<ExpressRoutePeeringType> {
    /** Static value AzurePublicPeering for ExpressRoutePeeringType. */
    public static final ExpressRoutePeeringType AZURE_PUBLIC_PEERING = fromString("AzurePublicPeering");

    /** Static value AzurePrivatePeering for ExpressRoutePeeringType. */
    public static final ExpressRoutePeeringType AZURE_PRIVATE_PEERING = fromString("AzurePrivatePeering");

    /** Static value MicrosoftPeering for ExpressRoutePeeringType. */
    public static final ExpressRoutePeeringType MICROSOFT_PEERING = fromString("MicrosoftPeering");

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

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

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