# 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_stats_view import UserStatsView


class UpdateUserStatsViewRequestBody(object):
    _types = {
        "view": UserStatsView,
    }

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

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


class UpdateUserStatsViewRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._update_user_stats_view_request_body = UpdateUserStatsViewRequestBody()

    def view(self, view: UserStatsView) -> "UpdateUserStatsViewRequestBodyBuilder":
        self._update_user_stats_view_request_body.view = view
        return self

    def build(self) -> "UpdateUserStatsViewRequestBody":
        return self._update_user_stats_view_request_body
