# 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 UserBase(object):
    _types = {
        "user_id": str,
        "department_ids": List[str],
    }

    def __init__(self, d=None):
        self.user_id: Optional[str] = None
        self.department_ids: Optional[List[str]] = None
        init(self, d, self._types)

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


class UserBaseBuilder(object):
    def __init__(self) -> None:
        self._user_base = UserBase()

    def user_id(self, user_id: str) -> "UserBaseBuilder":
        self._user_base.user_id = user_id
        return self

    def department_ids(self, department_ids: List[str]) -> "UserBaseBuilder":
        self._user_base.department_ids = department_ids
        return self

    def build(self) -> "UserBase":
        return self._user_base
