# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .company import Company


class BatchGetCompanyResponseBody(object):
    _types = {
        "items": List[Company],
    }

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

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


class BatchGetCompanyResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_get_company_response_body = BatchGetCompanyResponseBody()

    def items(self, items: List[Company]) -> "BatchGetCompanyResponseBodyBuilder":
        self._batch_get_company_response_body.items = items
        return self

    def build(self) -> "BatchGetCompanyResponseBody":
        return self._batch_get_company_response_body
