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

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

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


class DocsLinkBuilder(object):
    def __init__(self) -> None:
        self._docs_link = DocsLink()

    def url(self, url: str) -> "DocsLinkBuilder":
        self._docs_link.url = url
        return self

    def build(self) -> "DocsLink":
        return self._docs_link
