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

package com.azure.resourcemanager.databricks.models;

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

/** The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Keyvault. */
public final class EncryptionKeySource extends ExpandableStringEnum<EncryptionKeySource> {
    /** Static value Microsoft.Keyvault for EncryptionKeySource. */
    public static final EncryptionKeySource MICROSOFT_KEYVAULT = fromString("Microsoft.Keyvault");

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

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

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