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

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

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


class AilyKnowledgeDocsBuilder(object):
    def __init__(self) -> None:
        self._aily_knowledge_docs = AilyKnowledgeDocs()

    def title(self, title: str) -> "AilyKnowledgeDocsBuilder":
        self._aily_knowledge_docs.title = title
        return self

    def type(self, type: str) -> "AilyKnowledgeDocsBuilder":
        self._aily_knowledge_docs.type = type
        return self

    def token(self, token: str) -> "AilyKnowledgeDocsBuilder":
        self._aily_knowledge_docs.token = token
        return self

    def url(self, url: str) -> "AilyKnowledgeDocsBuilder":
        self._aily_knowledge_docs.url = url
        return self

    def build(self) -> "AilyKnowledgeDocs":
        return self._aily_knowledge_docs
