# 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 .mailgroup_manager import MailgroupManager


class BatchDeleteMailgroupManagerRequestBody(object):
    _types = {
        "mailgroup_manager_list": List[MailgroupManager],
    }

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

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


class BatchDeleteMailgroupManagerRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_delete_mailgroup_manager_request_body = BatchDeleteMailgroupManagerRequestBody()

    def mailgroup_manager_list(self, mailgroup_manager_list: List[
        MailgroupManager]) -> "BatchDeleteMailgroupManagerRequestBodyBuilder":
        self._batch_delete_mailgroup_manager_request_body.mailgroup_manager_list = mailgroup_manager_list
        return self

    def build(self) -> "BatchDeleteMailgroupManagerRequestBody":
        return self._batch_delete_mailgroup_manager_request_body
