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

package com.azure.resourcemanager.dataprotection.models;

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

/** Gets or sets the type of secret store. */
public final class SecretStoreType extends ExpandableStringEnum<SecretStoreType> {
    /** Static value Invalid for SecretStoreType. */
    public static final SecretStoreType INVALID = fromString("Invalid");

    /** Static value AzureKeyVault for SecretStoreType. */
    public static final SecretStoreType AZURE_KEY_VAULT = fromString("AzureKeyVault");

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

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

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