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

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

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


class ToolkitRedirectLinkBuilder(object):
    def __init__(self) -> None:
        self._toolkit_redirect_link = ToolkitRedirectLink()

    def url(self, url: str) -> "ToolkitRedirectLinkBuilder":
        self._toolkit_redirect_link.url = url
        return self

    def build(self) -> "ToolkitRedirectLink":
        return self._toolkit_redirect_link
