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

package com.azure.resourcemanager.storageimportexport.models;

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

/** The type of kek encryption key. */
public final class EncryptionKekType extends ExpandableStringEnum<EncryptionKekType> {
    /** Static value MicrosoftManaged for EncryptionKekType. */
    public static final EncryptionKekType MICROSOFT_MANAGED = fromString("MicrosoftManaged");

    /** Static value CustomerManaged for EncryptionKekType. */
    public static final EncryptionKekType CUSTOMER_MANAGED = fromString("CustomerManaged");

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

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

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