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

package com.azure.resourcemanager.networkcloud.models;

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

/** Field Deprecated, use virtualizationModel instead. The type of the virtio interface. */
public final class VirtualMachineVirtioInterfaceType extends ExpandableStringEnum<VirtualMachineVirtioInterfaceType> {
    /** Static value Modern for VirtualMachineVirtioInterfaceType. */
    public static final VirtualMachineVirtioInterfaceType MODERN = fromString("Modern");

    /** Static value Transitional for VirtualMachineVirtioInterfaceType. */
    public static final VirtualMachineVirtioInterfaceType TRANSITIONAL = fromString("Transitional");

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

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

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