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

package com.azure.resourcemanager.security.models;

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

/** The scan status. */
public final class ScanState extends ExpandableStringEnum<ScanState> {
    /** Static value Failed for ScanState. */
    public static final ScanState FAILED = fromString("Failed");

    /** Static value FailedToRun for ScanState. */
    public static final ScanState FAILED_TO_RUN = fromString("FailedToRun");

    /** Static value InProgress for ScanState. */
    public static final ScanState IN_PROGRESS = fromString("InProgress");

    /** Static value Passed for ScanState. */
    public static final ScanState PASSED = fromString("Passed");

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

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

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