# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .i18n import I18n


class AgencySupplierAdmin(object):
    _types = {
        "user_id": str,
        "name": I18n,
        "email": str,
    }

    def __init__(self, d=None):
        self.user_id: Optional[str] = None
        self.name: Optional[I18n] = None
        self.email: Optional[str] = None
        init(self, d, self._types)

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


class AgencySupplierAdminBuilder(object):
    def __init__(self) -> None:
        self._agency_supplier_admin = AgencySupplierAdmin()

    def user_id(self, user_id: str) -> "AgencySupplierAdminBuilder":
        self._agency_supplier_admin.user_id = user_id
        return self

    def name(self, name: I18n) -> "AgencySupplierAdminBuilder":
        self._agency_supplier_admin.name = name
        return self

    def email(self, email: str) -> "AgencySupplierAdminBuilder":
        self._agency_supplier_admin.email = email
        return self

    def build(self) -> "AgencySupplierAdmin":
        return self._agency_supplier_admin
