# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .delete_record import DeleteRecord


class BatchDeleteAppTableRecordResponseBody(object):
    _types = {
        "records": List[DeleteRecord],
    }

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

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


class BatchDeleteAppTableRecordResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_delete_app_table_record_response_body = BatchDeleteAppTableRecordResponseBody()

    def records(self, records: List[DeleteRecord]) -> "BatchDeleteAppTableRecordResponseBodyBuilder":
        self._batch_delete_app_table_record_response_body.records = records
        return self

    def build(self) -> "BatchDeleteAppTableRecordResponseBody":
        return self._batch_delete_app_table_record_response_body
