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

package com.azure.resourcemanager.security.models;

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

/** The application control policy enforcement/protection mode of the machine group. */
public final class EnforcementMode extends ExpandableStringEnum<EnforcementMode> {
    /** Static value Audit for EnforcementMode. */
    public static final EnforcementMode AUDIT = fromString("Audit");

    /** Static value Enforce for EnforcementMode. */
    public static final EnforcementMode ENFORCE = fromString("Enforce");

    /** Static value None for EnforcementMode. */
    public static final EnforcementMode NONE = fromString("None");

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

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

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