# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .chat_tab import ChatTab


class CreateChatTabResponseBody(object):
    _types = {
        "chat_tabs": List[ChatTab],
    }

    def __init__(self, d=None):
        self.chat_tabs: Optional[List[ChatTab]] = None
        init(self, d, self._types)

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


class CreateChatTabResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_chat_tab_response_body = CreateChatTabResponseBody()

    def chat_tabs(self, chat_tabs: List[ChatTab]) -> "CreateChatTabResponseBodyBuilder":
        self._create_chat_tab_response_body.chat_tabs = chat_tabs
        return self

    def build(self) -> "CreateChatTabResponseBody":
        return self._create_chat_tab_response_body
