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

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

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


class MindnoteBuilder(object):
    def __init__(self) -> None:
        self._mindnote = Mindnote()

    def token(self, token: str) -> "MindnoteBuilder":
        self._mindnote.token = token
        return self

    def build(self) -> "Mindnote":
        return self._mindnote
