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

package com.azure.health.insights.clinicalmatching.models;

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

/**
 * The type of the content's source. In case the source type is 'inline', the content is given as a string (for
 * instance, text). In case the source type is 'reference', the content is given as a URI.
 */
public final class DocumentContentSourceType extends ExpandableStringEnum<DocumentContentSourceType> {
    /** Static value inline for DocumentContentSourceType. */
    public static final DocumentContentSourceType INLINE = fromString("inline");

    /** Static value reference for DocumentContentSourceType. */
    public static final DocumentContentSourceType REFERENCE = fromString("reference");

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

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

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