// 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 scanning mode for the VM scan. */
public final class ScanningMode extends ExpandableStringEnum<ScanningMode> {
    /** Static value Default for ScanningMode. */
    public static final ScanningMode DEFAULT = fromString("Default");

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

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

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