# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class Priority(str, enum.Enum):
    """
    An enumeration.
    """

    ROUTINE = "routine"
    URGENT = "urgent"
    ASAP = "asap"
    STAT = "stat"

    def visit(
        self,
        routine: typing.Callable[[], T_Result],
        urgent: typing.Callable[[], T_Result],
        asap: typing.Callable[[], T_Result],
        stat: typing.Callable[[], T_Result],
    ) -> T_Result:
        if self is Priority.ROUTINE:
            return routine()
        if self is Priority.URGENT:
            return urgent()
        if self is Priority.ASAP:
            return asap()
        if self is Priority.STAT:
            return stat()
