# 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 CreateWebsiteChannelResponseBody(object):
    _types = {
        "id": str,
        "name": str,
        "link": str,
        "code": str,
    }

    def __init__(self, d=None):
        self.id: Optional[str] = None
        self.name: Optional[str] = None
        self.link: Optional[str] = None
        self.code: Optional[str] = None
        init(self, d, self._types)

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


class CreateWebsiteChannelResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_website_channel_response_body = CreateWebsiteChannelResponseBody()

    def id(self, id: str) -> "CreateWebsiteChannelResponseBodyBuilder":
        self._create_website_channel_response_body.id = id
        return self

    def name(self, name: str) -> "CreateWebsiteChannelResponseBodyBuilder":
        self._create_website_channel_response_body.name = name
        return self

    def link(self, link: str) -> "CreateWebsiteChannelResponseBodyBuilder":
        self._create_website_channel_response_body.link = link
        return self

    def code(self, code: str) -> "CreateWebsiteChannelResponseBodyBuilder":
        self._create_website_channel_response_body.code = code
        return self

    def build(self) -> "CreateWebsiteChannelResponseBody":
        return self._create_website_channel_response_body
