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

package com.azure.data.appconfiguration.implementation.models;

import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;

/** Defines values for KeyValueFields. */
public final class KeyValueFields extends ExpandableStringEnum<KeyValueFields> {
    /** Static value key for KeyValueFields. */
    public static final KeyValueFields KEY = fromString("key");

    /** Static value label for KeyValueFields. */
    public static final KeyValueFields LABEL = fromString("label");

    /** Static value content_type for KeyValueFields. */
    public static final KeyValueFields CONTENT_TYPE = fromString("content_type");

    /** Static value value for KeyValueFields. */
    public static final KeyValueFields VALUE = fromString("value");

    /** Static value last_modified for KeyValueFields. */
    public static final KeyValueFields LAST_MODIFIED = fromString("last_modified");

    /** Static value tags for KeyValueFields. */
    public static final KeyValueFields TAGS = fromString("tags");

    /** Static value locked for KeyValueFields. */
    public static final KeyValueFields LOCKED = fromString("locked");

    /** Static value etag for KeyValueFields. */
    public static final KeyValueFields ETAG = fromString("etag");

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

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

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