# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class DepartmentInfo(object):
    _types = {
        "department_name": str,
        "department_full_path": str,
        "custom_id": str,
    }

    def __init__(self, d=None):
        self.department_name: Optional[str] = None
        self.department_full_path: Optional[str] = None
        self.custom_id: Optional[str] = None
        init(self, d, self._types)

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


class DepartmentInfoBuilder(object):
    def __init__(self) -> None:
        self._department_info = DepartmentInfo()

    def department_name(self, department_name: str) -> "DepartmentInfoBuilder":
        self._department_info.department_name = department_name
        return self

    def department_full_path(self, department_full_path: str) -> "DepartmentInfoBuilder":
        self._department_info.department_full_path = department_full_path
        return self

    def custom_id(self, custom_id: str) -> "DepartmentInfoBuilder":
        self._department_info.custom_id = custom_id
        return self

    def build(self) -> "DepartmentInfo":
        return self._department_info
