# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class NotificationDepartment(object):
    _types = {
        "department_id": str,
        "name": str,
    }

    def __init__(self, d=None):
        self.department_id: Optional[str] = None
        self.name: Optional[str] = None
        init(self, d, self._types)

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


class NotificationDepartmentBuilder(object):
    def __init__(self) -> None:
        self._notification_department = NotificationDepartment()

    def department_id(self, department_id: str) -> "NotificationDepartmentBuilder":
        self._notification_department.department_id = department_id
        return self

    def name(self, name: str) -> "NotificationDepartmentBuilder":
        self._notification_department.name = name
        return self

    def build(self) -> "NotificationDepartment":
        return self._notification_department
