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

package com.azure.analytics.synapse.artifacts.models;

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

/** Spark configuration reference type. */
public final class SparkConfigurationReferenceType extends ExpandableStringEnum<SparkConfigurationReferenceType> {
    /** Static value SparkConfigurationReference for SparkConfigurationReferenceType. */
    public static final SparkConfigurationReferenceType SPARK_CONFIGURATION_REFERENCE =
            fromString("SparkConfigurationReference");

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

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

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