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

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

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


class HrefBuilder(object):
    def __init__(self) -> None:
        self._href = Href()

    def url(self, url: str) -> "HrefBuilder":
        self._href.url = url
        return self

    def title(self, title: str) -> "HrefBuilder":
        self._href.title = title
        return self

    def build(self) -> "Href":
        return self._href
