# 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 TalentDetailTalentNationality(object):
    _types = {
        "nationality_code": str,
        "name": I18n,
    }

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

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


class TalentDetailTalentNationalityBuilder(object):
    def __init__(self) -> None:
        self._talent_detail_talent_nationality = TalentDetailTalentNationality()

    def nationality_code(self, nationality_code: str) -> "TalentDetailTalentNationalityBuilder":
        self._talent_detail_talent_nationality.nationality_code = nationality_code
        return self

    def name(self, name: I18n) -> "TalentDetailTalentNationalityBuilder":
        self._talent_detail_talent_nationality.name = name
        return self

    def build(self) -> "TalentDetailTalentNationality":
        return self._talent_detail_talent_nationality
