# 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 CreateChatMembersResponseBody(object):
    _types = {
        "invalid_id_list": List[str],
        "not_existed_id_list": List[str],
        "pending_approval_id_list": List[str],
    }

    def __init__(self, d=None):
        self.invalid_id_list: Optional[List[str]] = None
        self.not_existed_id_list: Optional[List[str]] = None
        self.pending_approval_id_list: Optional[List[str]] = None
        init(self, d, self._types)

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


class CreateChatMembersResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_chat_members_response_body = CreateChatMembersResponseBody()

    def invalid_id_list(self, invalid_id_list: List[str]) -> "CreateChatMembersResponseBodyBuilder":
        self._create_chat_members_response_body.invalid_id_list = invalid_id_list
        return self

    def not_existed_id_list(self, not_existed_id_list: List[str]) -> "CreateChatMembersResponseBodyBuilder":
        self._create_chat_members_response_body.not_existed_id_list = not_existed_id_list
        return self

    def pending_approval_id_list(self, pending_approval_id_list: List[str]) -> "CreateChatMembersResponseBodyBuilder":
        self._create_chat_members_response_body.pending_approval_id_list = pending_approval_id_list
        return self

    def build(self) -> "CreateChatMembersResponseBody":
        return self._create_chat_members_response_body
