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

package com.azure.resourcemanager.kubernetesconfiguration.models;

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

/** The compliance state of the configuration. */
public final class ComplianceStateType extends ExpandableStringEnum<ComplianceStateType> {
    /** Static value Pending for ComplianceStateType. */
    public static final ComplianceStateType PENDING = fromString("Pending");

    /** Static value Compliant for ComplianceStateType. */
    public static final ComplianceStateType COMPLIANT = fromString("Compliant");

    /** Static value Noncompliant for ComplianceStateType. */
    public static final ComplianceStateType NONCOMPLIANT = fromString("Noncompliant");

    /** Static value Installed for ComplianceStateType. */
    public static final ComplianceStateType INSTALLED = fromString("Installed");

    /** Static value Failed for ComplianceStateType. */
    public static final ComplianceStateType FAILED = fromString("Failed");

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

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

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