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

package com.azure.resourcemanager.mediaservices.models;

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

/** The type of key used to encrypt the Account Key. */
public final class AccountEncryptionKeyType extends ExpandableStringEnum<AccountEncryptionKeyType> {
    /** Static value SystemKey for AccountEncryptionKeyType. */
    public static final AccountEncryptionKeyType SYSTEM_KEY = fromString("SystemKey");

    /** Static value CustomerKey for AccountEncryptionKeyType. */
    public static final AccountEncryptionKeyType CUSTOMER_KEY = fromString("CustomerKey");

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

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

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