# 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_row import WorkforcePlanDetailRow


class WorkforcePlanDetailReq(object):
    _types = {
        "workforce_plan_id": str,
        "items": List[WorkforcePlanDetailRow],
    }

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

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


class WorkforcePlanDetailReqBuilder(object):
    def __init__(self) -> None:
        self._workforce_plan_detail_req = WorkforcePlanDetailReq()

    def workforce_plan_id(self, workforce_plan_id: str) -> "WorkforcePlanDetailReqBuilder":
        self._workforce_plan_detail_req.workforce_plan_id = workforce_plan_id
        return self

    def items(self, items: List[WorkforcePlanDetailRow]) -> "WorkforcePlanDetailReqBuilder":
        self._workforce_plan_detail_req.items = items
        return self

    def build(self) -> "WorkforcePlanDetailReq":
        return self._workforce_plan_detail_req
