# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class FormFieldVariableDateValue(object):
    _types = {
        "value": int,
    }

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

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


class FormFieldVariableDateValueBuilder(object):
    def __init__(self) -> None:
        self._form_field_variable_date_value = FormFieldVariableDateValue()

    def value(self, value: int) -> "FormFieldVariableDateValueBuilder":
        self._form_field_variable_date_value.value = value
        return self

    def build(self) -> "FormFieldVariableDateValue":
        return self._form_field_variable_date_value
