// 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 trigger type. */
public final class ScanTriggerType extends ExpandableStringEnum<ScanTriggerType> {
    /** Static value OnDemand for ScanTriggerType. */
    public static final ScanTriggerType ON_DEMAND = fromString("OnDemand");

    /** Static value Recurring for ScanTriggerType. */
    public static final ScanTriggerType RECURRING = fromString("Recurring");

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

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

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