# 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 BatchUpdateDocumentBlockRequestBody(object):
    _types = {
        "requests": List[UpdateBlockRequest],
    }

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

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


class BatchUpdateDocumentBlockRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_update_document_block_request_body = BatchUpdateDocumentBlockRequestBody()

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

    def build(self) -> "BatchUpdateDocumentBlockRequestBody":
        return self._batch_update_document_block_request_body
