# Code generated by Lark OpenAPI.

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


class ParticipantJoinedItem(object):
    _types = {
        "participant": MeetingAgentEventUser,
        "join_time": str,
    }

    def __init__(self, d=None):
        self.participant: Optional[MeetingAgentEventUser] = None
        self.join_time: Optional[str] = None
        init(self, d, self._types)

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


class ParticipantJoinedItemBuilder(object):
    def __init__(self) -> None:
        self._participant_joined_item = ParticipantJoinedItem()

    def participant(self, participant: MeetingAgentEventUser) -> "ParticipantJoinedItemBuilder":
        self._participant_joined_item.participant = participant
        return self

    def join_time(self, join_time: str) -> "ParticipantJoinedItemBuilder":
        self._participant_joined_item.join_time = join_time
        return self

    def build(self) -> "ParticipantJoinedItem":
        return self._participant_joined_item
