# 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 UserViewDetail(object):
    _types = {
        "user_id": str,
        "view_time": str,
    }

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

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


class UserViewDetailBuilder(object):
    def __init__(self) -> None:
        self._user_view_detail = UserViewDetail()

    def user_id(self, user_id: str) -> "UserViewDetailBuilder":
        self._user_view_detail.user_id = user_id
        return self

    def view_time(self, view_time: str) -> "UserViewDetailBuilder":
        self._user_view_detail.view_time = view_time
        return self

    def build(self) -> "UserViewDetail":
        return self._user_view_detail
