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

package com.azure.resourcemanager.policyinsights.models;

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

/** The compliance state that should be set on the resource. */
public final class ComplianceState extends ExpandableStringEnum<ComplianceState> {
    /** Static value Compliant for ComplianceState. */
    public static final ComplianceState COMPLIANT = fromString("Compliant");

    /** Static value NonCompliant for ComplianceState. */
    public static final ComplianceState NON_COMPLIANT = fromString("NonCompliant");

    /** Static value Unknown for ComplianceState. */
    public static final ComplianceState UNKNOWN = fromString("Unknown");

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

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