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

package com.azure.resourcemanager.digitaltwins.models;

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

/**
 * Specifies whether or not to record twin / relationship property and item removals, including removals of indexed or
 * keyed values (such as map entries, array elements, etc.). This feature is de-activated unless explicitly set to
 * 'true'. Setting this property to 'true' will generate an additional column in the property events table in ADX.
 */
public final class RecordPropertyAndItemRemovals extends ExpandableStringEnum<RecordPropertyAndItemRemovals> {
    /** Static value true for RecordPropertyAndItemRemovals. */
    public static final RecordPropertyAndItemRemovals TRUE = fromString("true");

    /** Static value false for RecordPropertyAndItemRemovals. */
    public static final RecordPropertyAndItemRemovals FALSE = fromString("false");

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

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

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