# 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 ChatMenuItemRedirectLink(object):
    _types = {
        "common_url": str,
        "ios_url": str,
        "android_url": str,
        "pc_url": str,
        "web_url": str,
    }

    def __init__(self, d=None):
        self.common_url: Optional[str] = None
        self.ios_url: Optional[str] = None
        self.android_url: Optional[str] = None
        self.pc_url: Optional[str] = None
        self.web_url: Optional[str] = None
        init(self, d, self._types)

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


class ChatMenuItemRedirectLinkBuilder(object):
    def __init__(self) -> None:
        self._chat_menu_item_redirect_link = ChatMenuItemRedirectLink()

    def common_url(self, common_url: str) -> "ChatMenuItemRedirectLinkBuilder":
        self._chat_menu_item_redirect_link.common_url = common_url
        return self

    def ios_url(self, ios_url: str) -> "ChatMenuItemRedirectLinkBuilder":
        self._chat_menu_item_redirect_link.ios_url = ios_url
        return self

    def android_url(self, android_url: str) -> "ChatMenuItemRedirectLinkBuilder":
        self._chat_menu_item_redirect_link.android_url = android_url
        return self

    def pc_url(self, pc_url: str) -> "ChatMenuItemRedirectLinkBuilder":
        self._chat_menu_item_redirect_link.pc_url = pc_url
        return self

    def web_url(self, web_url: str) -> "ChatMenuItemRedirectLinkBuilder":
        self._chat_menu_item_redirect_link.web_url = web_url
        return self

    def build(self) -> "ChatMenuItemRedirectLink":
        return self._chat_menu_item_redirect_link
