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

package com.azure.resourcemanager.machinelearning.models;

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

/** Virtual Machine priority. */
public final class VmPriority extends ExpandableStringEnum<VmPriority> {
    /** Static value Dedicated for VmPriority. */
    public static final VmPriority DEDICATED = fromString("Dedicated");

    /** Static value LowPriority for VmPriority. */
    public static final VmPriority LOW_PRIORITY = fromString("LowPriority");

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

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

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