# 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 .department import Department


class UpdateDepartmentResponseBody(object):
    _types = {
        "department": Department,
    }

    def __init__(self, d=None):
        self.department: Optional[Department] = None
        init(self, d, self._types)

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


class UpdateDepartmentResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._update_department_response_body = UpdateDepartmentResponseBody()

    def department(self, department: Department) -> "UpdateDepartmentResponseBodyBuilder":
        self._update_department_response_body.department = department
        return self

    def build(self) -> "UpdateDepartmentResponseBody":
        return self._update_department_response_body
