# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .app_table_record import AppTableRecord


class BatchUpdateAppTableRecordResponseBody(object):
    _types = {
        "records": List[AppTableRecord],
    }

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

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


class BatchUpdateAppTableRecordResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_update_app_table_record_response_body = BatchUpdateAppTableRecordResponseBody()

    def records(self, records: List[AppTableRecord]) -> "BatchUpdateAppTableRecordResponseBodyBuilder":
        self._batch_update_app_table_record_response_body.records = records
        return self

    def build(self) -> "BatchUpdateAppTableRecordResponseBody":
        return self._batch_update_app_table_record_response_body
