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

/** The type of direct peering. */
public final class DirectPeeringType extends ExpandableStringEnum<DirectPeeringType> {
    /** Static value Edge for DirectPeeringType. */
    public static final DirectPeeringType EDGE = fromString("Edge");

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

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

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

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

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

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

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

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

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