// 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 access level allowed for the users in this key set. */
public final class BareMetalMachineKeySetPrivilegeLevel
    extends ExpandableStringEnum<BareMetalMachineKeySetPrivilegeLevel> {
    /** Static value Standard for BareMetalMachineKeySetPrivilegeLevel. */
    public static final BareMetalMachineKeySetPrivilegeLevel STANDARD = fromString("Standard");

    /** Static value Superuser for BareMetalMachineKeySetPrivilegeLevel. */
    public static final BareMetalMachineKeySetPrivilegeLevel SUPERUSER = fromString("Superuser");

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

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

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