# 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 .user import User


class UpdateUserResponseBody(object):
    _types = {
        "user": User,
    }

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

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


class UpdateUserResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._update_user_response_body = UpdateUserResponseBody()

    def user(self, user: User) -> "UpdateUserResponseBodyBuilder":
        self._update_user_response_body.user = user
        return self

    def build(self) -> "UpdateUserResponseBody":
        return self._update_user_response_body
