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

package com.azure.resourcemanager.avs.models;

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

/** The state of key provided. */
public final class EncryptionKeyStatus extends ExpandableStringEnum<EncryptionKeyStatus> {
    /** Static value Connected for EncryptionKeyStatus. */
    public static final EncryptionKeyStatus CONNECTED = fromString("Connected");

    /** Static value AccessDenied for EncryptionKeyStatus. */
    public static final EncryptionKeyStatus ACCESS_DENIED = fromString("AccessDenied");

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

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

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