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

package com.azure.resourcemanager.sql.models;

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

/** The scan trigger type. */
public final class VulnerabilityAssessmentScanTriggerType
    extends ExpandableStringEnum<VulnerabilityAssessmentScanTriggerType> {
    /** Static value OnDemand for VulnerabilityAssessmentScanTriggerType. */
    public static final VulnerabilityAssessmentScanTriggerType ON_DEMAND = fromString("OnDemand");

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

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

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