# 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 UpdateReferenceBaseRequest(object):
    _types = {
        "token": str,
        "view_id": str,
    }

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

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


class UpdateReferenceBaseRequestBuilder(object):
    def __init__(self) -> None:
        self._update_reference_base_request = UpdateReferenceBaseRequest()

    def token(self, token: str) -> "UpdateReferenceBaseRequestBuilder":
        self._update_reference_base_request.token = token
        return self

    def view_id(self, view_id: str) -> "UpdateReferenceBaseRequestBuilder":
        self._update_reference_base_request.view_id = view_id
        return self

    def build(self) -> "UpdateReferenceBaseRequest":
        return self._update_reference_base_request
