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

package com.azure.resourcemanager.peering.models;

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

/** Defines values for PeeringLocationsDirectPeeringType. */
public final class PeeringLocationsDirectPeeringType extends ExpandableStringEnum<PeeringLocationsDirectPeeringType> {
    /** Static value Edge for PeeringLocationsDirectPeeringType. */
    public static final PeeringLocationsDirectPeeringType EDGE = fromString("Edge");

    /** Static value Transit for PeeringLocationsDirectPeeringType. */
    public static final PeeringLocationsDirectPeeringType TRANSIT = fromString("Transit");

    /** Static value Cdn for PeeringLocationsDirectPeeringType. */
    public static final PeeringLocationsDirectPeeringType CDN = fromString("Cdn");

    /** Static value Internal for PeeringLocationsDirectPeeringType. */
    public static final PeeringLocationsDirectPeeringType INTERNAL = fromString("Internal");

    /** Static value Ix for PeeringLocationsDirectPeeringType. */
    public static final PeeringLocationsDirectPeeringType IX = fromString("Ix");

    /** Static value IxRs for PeeringLocationsDirectPeeringType. */
    public static final PeeringLocationsDirectPeeringType IX_RS = fromString("IxRs");

    /** Static value Voice for PeeringLocationsDirectPeeringType. */
    public static final PeeringLocationsDirectPeeringType VOICE = fromString("Voice");

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

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

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