# 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_member import MailgroupMember


class BatchCreateMailgroupMemberResponseBody(object):
    _types = {
        "items": List[MailgroupMember],
    }

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

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


class BatchCreateMailgroupMemberResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_create_mailgroup_member_response_body = BatchCreateMailgroupMemberResponseBody()

    def items(self, items: List[MailgroupMember]) -> "BatchCreateMailgroupMemberResponseBodyBuilder":
        self._batch_create_mailgroup_member_response_body.items = items
        return self

    def build(self) -> "BatchCreateMailgroupMemberResponseBody":
        return self._batch_create_mailgroup_member_response_body
