# 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 .enum_field_option import EnumFieldOption


class AddEnumOptionCommonDataMetaDataResponseBody(object):
    _types = {
        "enum_field_api_name": str,
        "enum_field_options": List[EnumFieldOption],
    }

    def __init__(self, d=None):
        self.enum_field_api_name: Optional[str] = None
        self.enum_field_options: Optional[List[EnumFieldOption]] = None
        init(self, d, self._types)

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


class AddEnumOptionCommonDataMetaDataResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._add_enum_option_common_data_meta_data_response_body = AddEnumOptionCommonDataMetaDataResponseBody()

    def enum_field_api_name(self, enum_field_api_name: str) -> "AddEnumOptionCommonDataMetaDataResponseBodyBuilder":
        self._add_enum_option_common_data_meta_data_response_body.enum_field_api_name = enum_field_api_name
        return self

    def enum_field_options(self, enum_field_options: List[
        EnumFieldOption]) -> "AddEnumOptionCommonDataMetaDataResponseBodyBuilder":
        self._add_enum_option_common_data_meta_data_response_body.enum_field_options = enum_field_options
        return self

    def build(self) -> "AddEnumOptionCommonDataMetaDataResponseBody":
        return self._add_enum_option_common_data_meta_data_response_body
