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

package com.azure.resourcemanager.avs.models;

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

/** Virtual machine type. */
public final class VMTypeEnum extends ExpandableStringEnum<VMTypeEnum> {
    /** Static value REGULAR for VMTypeEnum. */
    public static final VMTypeEnum REGULAR = fromString("REGULAR");

    /** Static value EDGE for VMTypeEnum. */
    public static final VMTypeEnum EDGE = fromString("EDGE");

    /** Static value SERVICE for VMTypeEnum. */
    public static final VMTypeEnum SERVICE = fromString("SERVICE");

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

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

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