# 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 .workforce_plan_detail_v2 import WorkforcePlanDetailV2


class BatchV2WorkforcePlanDetailResponseBody(object):
    _types = {
        "workforce_plan_id": str,
        "centralized_reporting_project_id": str,
        "items": List[WorkforcePlanDetailV2],
        "page_token": str,
        "has_more": bool,
    }

    def __init__(self, d=None):
        self.workforce_plan_id: Optional[str] = None
        self.centralized_reporting_project_id: Optional[str] = None
        self.items: Optional[List[WorkforcePlanDetailV2]] = None
        self.page_token: Optional[str] = None
        self.has_more: Optional[bool] = None
        init(self, d, self._types)

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


class BatchV2WorkforcePlanDetailResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_v2_workforce_plan_detail_response_body = BatchV2WorkforcePlanDetailResponseBody()

    def workforce_plan_id(self, workforce_plan_id: str) -> "BatchV2WorkforcePlanDetailResponseBodyBuilder":
        self._batch_v2_workforce_plan_detail_response_body.workforce_plan_id = workforce_plan_id
        return self

    def centralized_reporting_project_id(self,
                                         centralized_reporting_project_id: str) -> "BatchV2WorkforcePlanDetailResponseBodyBuilder":
        self._batch_v2_workforce_plan_detail_response_body.centralized_reporting_project_id = centralized_reporting_project_id
        return self

    def items(self, items: List[WorkforcePlanDetailV2]) -> "BatchV2WorkforcePlanDetailResponseBodyBuilder":
        self._batch_v2_workforce_plan_detail_response_body.items = items
        return self

    def page_token(self, page_token: str) -> "BatchV2WorkforcePlanDetailResponseBodyBuilder":
        self._batch_v2_workforce_plan_detail_response_body.page_token = page_token
        return self

    def has_more(self, has_more: bool) -> "BatchV2WorkforcePlanDetailResponseBodyBuilder":
        self._batch_v2_workforce_plan_detail_response_body.has_more = has_more
        return self

    def build(self) -> "BatchV2WorkforcePlanDetailResponseBody":
        return self._batch_v2_workforce_plan_detail_response_body
