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

package com.azure.ai.formrecognizer.documentanalysis.models;

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

/** Semantic role of the paragraph. */
public final class ParagraphRole extends ExpandableStringEnum<ParagraphRole> {
    /** Static value pageHeader for ParagraphRole. */
    public static final ParagraphRole PAGE_HEADER = fromString("pageHeader");

    /** Static value pageFooter for ParagraphRole. */
    public static final ParagraphRole PAGE_FOOTER = fromString("pageFooter");

    /** Static value pageNumber for ParagraphRole. */
    public static final ParagraphRole PAGE_NUMBER = fromString("pageNumber");

    /** Static value title for ParagraphRole. */
    public static final ParagraphRole TITLE = fromString("title");

    /** Static value sectionHeading for ParagraphRole. */
    public static final ParagraphRole SECTION_HEADING = fromString("sectionHeading");

    /** Static value footnote for ParagraphRole. */
    public static final ParagraphRole FOOTNOTE = fromString("footnote");

    /** Static value formulaBlock for ParagraphRole. */
    public static final ParagraphRole FORMULA_BLOCK = fromString("formulaBlock");

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

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

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