// 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 provisioningState of the vulnerability assessment capability on the VM. */
public final class ServerVulnerabilityAssessmentPropertiesProvisioningState
    extends ExpandableStringEnum<ServerVulnerabilityAssessmentPropertiesProvisioningState> {
    /** Static value Succeeded for ServerVulnerabilityAssessmentPropertiesProvisioningState. */
    public static final ServerVulnerabilityAssessmentPropertiesProvisioningState SUCCEEDED = fromString("Succeeded");

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

    /** Static value Canceled for ServerVulnerabilityAssessmentPropertiesProvisioningState. */
    public static final ServerVulnerabilityAssessmentPropertiesProvisioningState CANCELED = fromString("Canceled");

    /** Static value Provisioning for ServerVulnerabilityAssessmentPropertiesProvisioningState. */
    public static final ServerVulnerabilityAssessmentPropertiesProvisioningState PROVISIONING =
        fromString("Provisioning");

    /** Static value Deprovisioning for ServerVulnerabilityAssessmentPropertiesProvisioningState. */
    public static final ServerVulnerabilityAssessmentPropertiesProvisioningState DEPROVISIONING =
        fromString("Deprovisioning");

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

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

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