# 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 BatchCreateApplicationObjectRecordResponseBody(object):
    _types = {
        "items": List[RecordResult],
    }

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

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


class BatchCreateApplicationObjectRecordResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_create_application_object_record_response_body = BatchCreateApplicationObjectRecordResponseBody()

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

    def build(self) -> "BatchCreateApplicationObjectRecordResponseBody":
        return self._batch_create_application_object_record_response_body
