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

package com.azure.resourcemanager.security.models;

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

/** Defines values for DataSource. */
public final class DataSource extends ExpandableStringEnum<DataSource> {
    /** Static value TwinData for DataSource. */
    public static final DataSource TWIN_DATA = fromString("TwinData");

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

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

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