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

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

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


class KnowledgeQaInternetReferenceBuilder(object):
    def __init__(self) -> None:
        self._knowledge_qa_internet_reference = KnowledgeQaInternetReference()

    def title(self, title: str) -> "KnowledgeQaInternetReferenceBuilder":
        self._knowledge_qa_internet_reference.title = title
        return self

    def summary(self, summary: str) -> "KnowledgeQaInternetReferenceBuilder":
        self._knowledge_qa_internet_reference.summary = summary
        return self

    def url(self, url: str) -> "KnowledgeQaInternetReferenceBuilder":
        self._knowledge_qa_internet_reference.url = url
        return self

    def build(self) -> "KnowledgeQaInternetReference":
        return self._knowledge_qa_internet_reference
