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

package com.azure.resourcemanager.compute.models;

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

/** VM disk types which are disallowed. */
public final class VmDiskTypes extends ExpandableStringEnum<VmDiskTypes> {
    /** Static value None for VmDiskTypes. */
    public static final VmDiskTypes NONE = fromString("None");

    /** Static value Unmanaged for VmDiskTypes. */
    public static final VmDiskTypes UNMANAGED = fromString("Unmanaged");

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

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

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