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

package com.azure.resourcemanager.providerhub.models;

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

/** Defines values for PreflightOption. */
public final class PreflightOption extends ExpandableStringEnum<PreflightOption> {
    /** Static value None for PreflightOption. */
    public static final PreflightOption NONE = fromString("None");

    /** Static value ContinueDeploymentOnFailure for PreflightOption. */
    public static final PreflightOption CONTINUE_DEPLOYMENT_ON_FAILURE = fromString("ContinueDeploymentOnFailure");

    /** Static value DefaultValidationOnly for PreflightOption. */
    public static final PreflightOption DEFAULT_VALIDATION_ONLY = fromString("DefaultValidationOnly");

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

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

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