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

package com.azure.resourcemanager.customerinsights.models;

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

/** The data source type. */
public final class DataSourceType extends ExpandableStringEnum<DataSourceType> {
    /** Static value Connector for DataSourceType. */
    public static final DataSourceType CONNECTOR = fromString("Connector");

    /** Static value LinkInteraction for DataSourceType. */
    public static final DataSourceType LINK_INTERACTION = fromString("LinkInteraction");

    /** Static value SystemDefault for DataSourceType. */
    public static final DataSourceType SYSTEM_DEFAULT = fromString("SystemDefault");

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

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

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