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

package com.azure.resourcemanager.securitydevops.models;

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

/** Defines values for RuleCategory. */
public final class RuleCategory extends ExpandableStringEnum<RuleCategory> {
    /** Static value Code for RuleCategory. */
    public static final RuleCategory CODE = fromString("Code");

    /** Static value Artifacts for RuleCategory. */
    public static final RuleCategory ARTIFACTS = fromString("Artifacts");

    /** Static value Dependencies for RuleCategory. */
    public static final RuleCategory DEPENDENCIES = fromString("Dependencies");

    /** Static value Secrets for RuleCategory. */
    public static final RuleCategory SECRETS = fromString("Secrets");

    /** Static value IaC for RuleCategory. */
    public static final RuleCategory IAC = fromString("IaC");

    /** Static value Containers for RuleCategory. */
    public static final RuleCategory CONTAINERS = fromString("Containers");

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

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