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

package com.azure.resourcemanager.timeseriesinsights.models;

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

/** The type of the key property. */
public final class ReferenceDataKeyPropertyType extends ExpandableStringEnum<ReferenceDataKeyPropertyType> {
    /** Static value String for ReferenceDataKeyPropertyType. */
    public static final ReferenceDataKeyPropertyType STRING = fromString("String");

    /** Static value Double for ReferenceDataKeyPropertyType. */
    public static final ReferenceDataKeyPropertyType DOUBLE = fromString("Double");

    /** Static value Bool for ReferenceDataKeyPropertyType. */
    public static final ReferenceDataKeyPropertyType BOOL = fromString("Bool");

    /** Static value DateTime for ReferenceDataKeyPropertyType. */
    public static final ReferenceDataKeyPropertyType DATE_TIME = fromString("DateTime");

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

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

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