# 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 .update_block_request import UpdateBlockRequest


class BatchUpdateChatAnnouncementBlockRequestBody(object):
    _types = {
        "requests": List[UpdateBlockRequest],
    }

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

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


class BatchUpdateChatAnnouncementBlockRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_update_chat_announcement_block_request_body = BatchUpdateChatAnnouncementBlockRequestBody()

    def requests(self, requests: List[UpdateBlockRequest]) -> "BatchUpdateChatAnnouncementBlockRequestBodyBuilder":
        self._batch_update_chat_announcement_block_request_body.requests = requests
        return self

    def build(self) -> "BatchUpdateChatAnnouncementBlockRequestBody":
        return self._batch_update_chat_announcement_block_request_body
