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

package com.azure.resourcemanager.managednetworkfabric.models;

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

/** Type of NNI used. Example: CE | NPB. */
public final class NniType extends ExpandableStringEnum<NniType> {
    /** Static value CE for NniType. */
    public static final NniType CE = fromString("CE");

    /** Static value NPB for NniType. */
    public static final NniType NPB = fromString("NPB");

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

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

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