# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .form_field_variable_list_object import FormFieldVariableListObject


class FormFieldVariableListValue(object):
    _types = {
        "values": List[FormFieldVariableListObject],
    }

    def __init__(self, d=None):
        self.values: Optional[List[FormFieldVariableListObject]] = None
        init(self, d, self._types)

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


class FormFieldVariableListValueBuilder(object):
    def __init__(self) -> None:
        self._form_field_variable_list_value = FormFieldVariableListValue()

    def values(self, values: List[FormFieldVariableListObject]) -> "FormFieldVariableListValueBuilder":
        self._form_field_variable_list_value.values = values
        return self

    def build(self) -> "FormFieldVariableListValue":
        return self._form_field_variable_list_value
