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

package com.azure.resourcemanager.appcomplianceautomation.models;

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

/** Indicates the control status. */
public final class ControlStatus extends ExpandableStringEnum<ControlStatus> {
    /** Static value Passed for ControlStatus. */
    public static final ControlStatus PASSED = fromString("Passed");

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

    /** Static value NotApplicable for ControlStatus. */
    public static final ControlStatus NOT_APPLICABLE = fromString("NotApplicable");

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

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