# 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 AddEnumOptionCommonDataMetaDataRequestBody(object):
    _types = {
        "object_api_name": str,
        "enum_field_api_name": str,
        "enum_field_options": List[EnumFieldOption],
    }

    def __init__(self, d=None):
        self.object_api_name: Optional[str] = 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() -> "AddEnumOptionCommonDataMetaDataRequestBodyBuilder":
        return AddEnumOptionCommonDataMetaDataRequestBodyBuilder()


class AddEnumOptionCommonDataMetaDataRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._add_enum_option_common_data_meta_data_request_body = AddEnumOptionCommonDataMetaDataRequestBody()

    def object_api_name(self, object_api_name: str) -> "AddEnumOptionCommonDataMetaDataRequestBodyBuilder":
        self._add_enum_option_common_data_meta_data_request_body.object_api_name = object_api_name
        return self

    def enum_field_api_name(self, enum_field_api_name: str) -> "AddEnumOptionCommonDataMetaDataRequestBodyBuilder":
        self._add_enum_option_common_data_meta_data_request_body.enum_field_api_name = enum_field_api_name
        return self

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

    def build(self) -> "AddEnumOptionCommonDataMetaDataRequestBody":
        return self._add_enum_option_common_data_meta_data_request_body
