# 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 .i18n_meeting_description import I18nMeetingDescription


class ThirdPartyMeetingSettings(object):
    _types = {
        "meeting_type": str,
        "meeting_id": str,
        "meeting_no": str,
        "password": str,
        "meeting_descriptions": List[I18nMeetingDescription],
    }

    def __init__(self, d=None):
        self.meeting_type: Optional[str] = None
        self.meeting_id: Optional[str] = None
        self.meeting_no: Optional[str] = None
        self.password: Optional[str] = None
        self.meeting_descriptions: Optional[List[I18nMeetingDescription]] = None
        init(self, d, self._types)

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


class ThirdPartyMeetingSettingsBuilder(object):
    def __init__(self) -> None:
        self._third_party_meeting_settings = ThirdPartyMeetingSettings()

    def meeting_type(self, meeting_type: str) -> "ThirdPartyMeetingSettingsBuilder":
        self._third_party_meeting_settings.meeting_type = meeting_type
        return self

    def meeting_id(self, meeting_id: str) -> "ThirdPartyMeetingSettingsBuilder":
        self._third_party_meeting_settings.meeting_id = meeting_id
        return self

    def meeting_no(self, meeting_no: str) -> "ThirdPartyMeetingSettingsBuilder":
        self._third_party_meeting_settings.meeting_no = meeting_no
        return self

    def password(self, password: str) -> "ThirdPartyMeetingSettingsBuilder":
        self._third_party_meeting_settings.password = password
        return self

    def meeting_descriptions(self,
                             meeting_descriptions: List[I18nMeetingDescription]) -> "ThirdPartyMeetingSettingsBuilder":
        self._third_party_meeting_settings.meeting_descriptions = meeting_descriptions
        return self

    def build(self) -> "ThirdPartyMeetingSettings":
        return self._third_party_meeting_settings
