# 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 .record_result import RecordResult


class BatchUpdateApplicationObjectRecordResponseBody(object):
    _types = {
        "items": List[RecordResult],
    }

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

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


class BatchUpdateApplicationObjectRecordResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_update_application_object_record_response_body = BatchUpdateApplicationObjectRecordResponseBody()

    def items(self, items: List[RecordResult]) -> "BatchUpdateApplicationObjectRecordResponseBodyBuilder":
        self._batch_update_application_object_record_response_body.items = items
        return self

    def build(self) -> "BatchUpdateApplicationObjectRecordResponseBody":
        return self._batch_update_application_object_record_response_body
