# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .bpm_dataengine_i18n import BpmDataengineI18n


class FormFieldVariableI18nValue(object):
    _types = {
        "value": BpmDataengineI18n,
    }

    def __init__(self, d=None):
        self.value: Optional[BpmDataengineI18n] = None
        init(self, d, self._types)

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


class FormFieldVariableI18nValueBuilder(object):
    def __init__(self) -> None:
        self._form_field_variable_i18n_value = FormFieldVariableI18nValue()

    def value(self, value: BpmDataengineI18n) -> "FormFieldVariableI18nValueBuilder":
        self._form_field_variable_i18n_value.value = value
        return self

    def build(self) -> "FormFieldVariableI18nValue":
        return self._form_field_variable_i18n_value
