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

/** The type of the device model to use. */
public final class VirtualMachineDeviceModelType extends ExpandableStringEnum<VirtualMachineDeviceModelType> {
    /** Static value T1 for VirtualMachineDeviceModelType. */
    public static final VirtualMachineDeviceModelType T1 = fromString("T1");

    /** Static value T2 for VirtualMachineDeviceModelType. */
    public static final VirtualMachineDeviceModelType T2 = fromString("T2");

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

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

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