# 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 ExchangeBinding(object):
    _types = {
        "admin_account": str,
        "exchange_account": str,
        "user_id": str,
        "status": str,
        "exchange_binding_id": str,
    }

    def __init__(self, d=None):
        self.admin_account: Optional[str] = None
        self.exchange_account: Optional[str] = None
        self.user_id: Optional[str] = None
        self.status: Optional[str] = None
        self.exchange_binding_id: Optional[str] = None
        init(self, d, self._types)

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


class ExchangeBindingBuilder(object):
    def __init__(self) -> None:
        self._exchange_binding = ExchangeBinding()

    def admin_account(self, admin_account: str) -> "ExchangeBindingBuilder":
        self._exchange_binding.admin_account = admin_account
        return self

    def exchange_account(self, exchange_account: str) -> "ExchangeBindingBuilder":
        self._exchange_binding.exchange_account = exchange_account
        return self

    def user_id(self, user_id: str) -> "ExchangeBindingBuilder":
        self._exchange_binding.user_id = user_id
        return self

    def status(self, status: str) -> "ExchangeBindingBuilder":
        self._exchange_binding.status = status
        return self

    def exchange_binding_id(self, exchange_binding_id: str) -> "ExchangeBindingBuilder":
        self._exchange_binding.exchange_binding_id = exchange_binding_id
        return self

    def build(self) -> "ExchangeBinding":
        return self._exchange_binding
