# 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 .employee_cost_allocation import EmployeeCostAllocation


class BatchQueryCostAllocationResponseBody(object):
    _types = {
        "items": List[EmployeeCostAllocation],
    }

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

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


class BatchQueryCostAllocationResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_query_cost_allocation_response_body = BatchQueryCostAllocationResponseBody()

    def items(self, items: List[EmployeeCostAllocation]) -> "BatchQueryCostAllocationResponseBodyBuilder":
        self._batch_query_cost_allocation_response_body.items = items
        return self

    def build(self) -> "BatchQueryCostAllocationResponseBody":
        return self._batch_query_cost_allocation_response_body
