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

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class VoiceSharingState(str, enum.Enum):
    ENABLED = "enabled"
    DISABLED = "disabled"
    COPIED = "copied"
    COPIED_DISABLED = "copied_disabled"

    def visit(
        self,
        enabled: typing.Callable[[], T_Result],
        disabled: typing.Callable[[], T_Result],
        copied: typing.Callable[[], T_Result],
        copied_disabled: typing.Callable[[], T_Result],
    ) -> T_Result:
        if self is VoiceSharingState.ENABLED:
            return enabled()
        if self is VoiceSharingState.DISABLED:
            return disabled()
        if self is VoiceSharingState.COPIED:
            return copied()
        if self is VoiceSharingState.COPIED_DISABLED:
            return copied_disabled()
