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

package com.azure.resourcemanager.netapp.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.NetApp, Microsoft.KeyVault. */
public final class KeySource extends ExpandableStringEnum<KeySource> {
    /** Static value Microsoft.NetApp for KeySource. */
    public static final KeySource MICROSOFT_NET_APP = fromString("Microsoft.NetApp");

    /** Static value Microsoft.KeyVault for KeySource. */
    public static final KeySource MICROSOFT_KEY_VAULT = fromString("Microsoft.KeyVault");

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

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

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