# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .memberlist import Memberlist


class BatchAddGroupMemberRequestBody(object):
    _types = {
        "members": List[Memberlist],
    }

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

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


class BatchAddGroupMemberRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_add_group_member_request_body = BatchAddGroupMemberRequestBody()

    def members(self, members: List[Memberlist]) -> "BatchAddGroupMemberRequestBodyBuilder":
        self._batch_add_group_member_request_body.members = members
        return self

    def build(self) -> "BatchAddGroupMemberRequestBody":
        return self._batch_add_group_member_request_body
