# 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 .block import Block


class CreateChatAnnouncementBlockChildrenResponseBody(object):
    _types = {
        "children": List[Block],
        "revision_id": int,
        "client_token": str,
    }

    def __init__(self, d=None):
        self.children: Optional[List[Block]] = None
        self.revision_id: Optional[int] = None
        self.client_token: Optional[str] = None
        init(self, d, self._types)

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


class CreateChatAnnouncementBlockChildrenResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_chat_announcement_block_children_response_body = CreateChatAnnouncementBlockChildrenResponseBody()

    def children(self, children: List[Block]) -> "CreateChatAnnouncementBlockChildrenResponseBodyBuilder":
        self._create_chat_announcement_block_children_response_body.children = children
        return self

    def revision_id(self, revision_id: int) -> "CreateChatAnnouncementBlockChildrenResponseBodyBuilder":
        self._create_chat_announcement_block_children_response_body.revision_id = revision_id
        return self

    def client_token(self, client_token: str) -> "CreateChatAnnouncementBlockChildrenResponseBodyBuilder":
        self._create_chat_announcement_block_children_response_body.client_token = client_token
        return self

    def build(self) -> "CreateChatAnnouncementBlockChildrenResponseBody":
        return self._create_chat_announcement_block_children_response_body
