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

package com.azure.resourcemanager.sqlvirtualmachine.models;

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

/** SQL IaaS Agent least privilege mode. */
public final class LeastPrivilegeMode extends ExpandableStringEnum<LeastPrivilegeMode> {
    /** Static value Enabled for LeastPrivilegeMode. */
    public static final LeastPrivilegeMode ENABLED = fromString("Enabled");

    /** Static value NotSet for LeastPrivilegeMode. */
    public static final LeastPrivilegeMode NOT_SET = fromString("NotSet");

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

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

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