# 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 BatchUpdateChatAnnouncementBlockResponseBody(object):
    _types = {
        "blocks": List[Block],
        "revision_id": int,
        "client_token": str,
    }

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

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


class BatchUpdateChatAnnouncementBlockResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_update_chat_announcement_block_response_body = BatchUpdateChatAnnouncementBlockResponseBody()

    def blocks(self, blocks: List[Block]) -> "BatchUpdateChatAnnouncementBlockResponseBodyBuilder":
        self._batch_update_chat_announcement_block_response_body.blocks = blocks
        return self

    def revision_id(self, revision_id: int) -> "BatchUpdateChatAnnouncementBlockResponseBodyBuilder":
        self._batch_update_chat_announcement_block_response_body.revision_id = revision_id
        return self

    def client_token(self, client_token: str) -> "BatchUpdateChatAnnouncementBlockResponseBodyBuilder":
        self._batch_update_chat_announcement_block_response_body.client_token = client_token
        return self

    def build(self) -> "BatchUpdateChatAnnouncementBlockResponseBody":
        return self._batch_update_chat_announcement_block_response_body
