# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class WikiCatalog(object):
    _types = {
        "wiki_token": str,
    }

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

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


class WikiCatalogBuilder(object):
    def __init__(self) -> None:
        self._wiki_catalog = WikiCatalog()

    def wiki_token(self, wiki_token: str) -> "WikiCatalogBuilder":
        self._wiki_catalog.wiki_token = wiki_token
        return self

    def build(self) -> "WikiCatalog":
        return self._wiki_catalog
