# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .department_hrbp import DepartmentHrbp


class GetByDepartmentBpResponseBody(object):
    _types = {
        "items": List[DepartmentHrbp],
    }

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

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


class GetByDepartmentBpResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_by_department_bp_response_body = GetByDepartmentBpResponseBody()

    def items(self, items: List[DepartmentHrbp]) -> "GetByDepartmentBpResponseBodyBuilder":
        self._get_by_department_bp_response_body.items = items
        return self

    def build(self) -> "GetByDepartmentBpResponseBody":
        return self._get_by_department_bp_response_body
