# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class MeetingNamedUser(object):
    _types = {
        "id": str,
        "user_type": int,
        "in_meeting_name": str,
    }

    def __init__(self, d=None):
        self.id: Optional[str] = None
        self.user_type: Optional[int] = None
        self.in_meeting_name: Optional[str] = None
        init(self, d, self._types)

    @staticmethod
    def builder() -> "MeetingNamedUserBuilder":
        return MeetingNamedUserBuilder()


class MeetingNamedUserBuilder(object):
    def __init__(self) -> None:
        self._meeting_named_user = MeetingNamedUser()

    def id(self, id: str) -> "MeetingNamedUserBuilder":
        self._meeting_named_user.id = id
        return self

    def user_type(self, user_type: int) -> "MeetingNamedUserBuilder":
        self._meeting_named_user.user_type = user_type
        return self

    def in_meeting_name(self, in_meeting_name: str) -> "MeetingNamedUserBuilder":
        self._meeting_named_user.in_meeting_name = in_meeting_name
        return self

    def build(self) -> "MeetingNamedUser":
        return self._meeting_named_user
