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

package com.azure.resourcemanager.frontdoor.models;

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

/** Describes if policy managed rules will inspect the request body content. */
public final class PolicyRequestBodyCheck extends ExpandableStringEnum<PolicyRequestBodyCheck> {
    /** Static value Disabled for PolicyRequestBodyCheck. */
    public static final PolicyRequestBodyCheck DISABLED = fromString("Disabled");

    /** Static value Enabled for PolicyRequestBodyCheck. */
    public static final PolicyRequestBodyCheck ENABLED = fromString("Enabled");

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

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

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