# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class AppRecommendRuleItemInfoI18nName(object):
    _types = {
        "zh_cn": str,
        "zh_hk": str,
        "zh_tw": str,
        "en_us": str,
        "ja_jp": str,
    }

    def __init__(self, d=None):
        self.zh_cn: Optional[str] = None
        self.zh_hk: Optional[str] = None
        self.zh_tw: Optional[str] = None
        self.en_us: Optional[str] = None
        self.ja_jp: Optional[str] = None
        init(self, d, self._types)

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


class AppRecommendRuleItemInfoI18nNameBuilder(object):
    def __init__(self) -> None:
        self._app_recommend_rule_item_info_i18n_name = AppRecommendRuleItemInfoI18nName()

    def zh_cn(self, zh_cn: str) -> "AppRecommendRuleItemInfoI18nNameBuilder":
        self._app_recommend_rule_item_info_i18n_name.zh_cn = zh_cn
        return self

    def zh_hk(self, zh_hk: str) -> "AppRecommendRuleItemInfoI18nNameBuilder":
        self._app_recommend_rule_item_info_i18n_name.zh_hk = zh_hk
        return self

    def zh_tw(self, zh_tw: str) -> "AppRecommendRuleItemInfoI18nNameBuilder":
        self._app_recommend_rule_item_info_i18n_name.zh_tw = zh_tw
        return self

    def en_us(self, en_us: str) -> "AppRecommendRuleItemInfoI18nNameBuilder":
        self._app_recommend_rule_item_info_i18n_name.en_us = en_us
        return self

    def ja_jp(self, ja_jp: str) -> "AppRecommendRuleItemInfoI18nNameBuilder":
        self._app_recommend_rule_item_info_i18n_name.ja_jp = ja_jp
        return self

    def build(self) -> "AppRecommendRuleItemInfoI18nName":
        return self._app_recommend_rule_item_info_i18n_name
