# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class EcoAccountCustomFieldEventData(object):
    _types = {
        "key": str,
        "value": str,
    }

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

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


class EcoAccountCustomFieldEventDataBuilder(object):
    def __init__(self) -> None:
        self._eco_account_custom_field_event_data = EcoAccountCustomFieldEventData()

    def key(self, key: str) -> "EcoAccountCustomFieldEventDataBuilder":
        self._eco_account_custom_field_event_data.key = key
        return self

    def value(self, value: str) -> "EcoAccountCustomFieldEventDataBuilder":
        self._eco_account_custom_field_event_data.value = value
        return self

    def build(self) -> "EcoAccountCustomFieldEventData":
        return self._eco_account_custom_field_event_data
