// 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;

/** Property of the key if user provided or auto detected. */
public final class EncryptionVersionType extends ExpandableStringEnum<EncryptionVersionType> {
    /** Static value Fixed for EncryptionVersionType. */
    public static final EncryptionVersionType FIXED = fromString("Fixed");

    /** Static value AutoDetected for EncryptionVersionType. */
    public static final EncryptionVersionType AUTO_DETECTED = fromString("AutoDetected");

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

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

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