# 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 .cost_allocation_report_data import CostAllocationReportData
from .i18n_content import I18nContent


class ListCostAllocationDetailResponseBody(object):
    _types = {
        "cost_allocation_report_datas": List[CostAllocationReportData],
        "cost_allocation_report_names": List[I18nContent],
        "pay_period": str,
        "page_token": str,
        "has_more": bool,
    }

    def __init__(self, d=None):
        self.cost_allocation_report_datas: Optional[List[CostAllocationReportData]] = None
        self.cost_allocation_report_names: Optional[List[I18nContent]] = None
        self.pay_period: Optional[str] = None
        self.page_token: Optional[str] = None
        self.has_more: Optional[bool] = None
        init(self, d, self._types)

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


class ListCostAllocationDetailResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._list_cost_allocation_detail_response_body = ListCostAllocationDetailResponseBody()

    def cost_allocation_report_datas(self, cost_allocation_report_datas: List[
        CostAllocationReportData]) -> "ListCostAllocationDetailResponseBodyBuilder":
        self._list_cost_allocation_detail_response_body.cost_allocation_report_datas = cost_allocation_report_datas
        return self

    def cost_allocation_report_names(self, cost_allocation_report_names: List[
        I18nContent]) -> "ListCostAllocationDetailResponseBodyBuilder":
        self._list_cost_allocation_detail_response_body.cost_allocation_report_names = cost_allocation_report_names
        return self

    def pay_period(self, pay_period: str) -> "ListCostAllocationDetailResponseBodyBuilder":
        self._list_cost_allocation_detail_response_body.pay_period = pay_period
        return self

    def page_token(self, page_token: str) -> "ListCostAllocationDetailResponseBodyBuilder":
        self._list_cost_allocation_detail_response_body.page_token = page_token
        return self

    def has_more(self, has_more: bool) -> "ListCostAllocationDetailResponseBodyBuilder":
        self._list_cost_allocation_detail_response_body.has_more = has_more
        return self

    def build(self) -> "ListCostAllocationDetailResponseBody":
        return self._list_cost_allocation_detail_response_body
