# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init


class BatchDeleteEcoAccountCustomFieldRequestBody(object):
    _types = {
        "scope": int,
        "custom_field_key_list": List[str],
    }

    def __init__(self, d=None):
        self.scope: Optional[int] = None
        self.custom_field_key_list: Optional[List[str]] = None
        init(self, d, self._types)

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


class BatchDeleteEcoAccountCustomFieldRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_delete_eco_account_custom_field_request_body = BatchDeleteEcoAccountCustomFieldRequestBody()

    def scope(self, scope: int) -> "BatchDeleteEcoAccountCustomFieldRequestBodyBuilder":
        self._batch_delete_eco_account_custom_field_request_body.scope = scope
        return self

    def custom_field_key_list(self,
                              custom_field_key_list: List[str]) -> "BatchDeleteEcoAccountCustomFieldRequestBodyBuilder":
        self._batch_delete_eco_account_custom_field_request_body.custom_field_key_list = custom_field_key_list
        return self

    def build(self) -> "BatchDeleteEcoAccountCustomFieldRequestBody":
        return self._batch_delete_eco_account_custom_field_request_body
