# 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 .app_role_member_id import AppRoleMemberId


class BatchCreateAppRoleMemberRequestBody(object):
    _types = {
        "member_list": List[AppRoleMemberId],
    }

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

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


class BatchCreateAppRoleMemberRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_create_app_role_member_request_body = BatchCreateAppRoleMemberRequestBody()

    def member_list(self, member_list: List[AppRoleMemberId]) -> "BatchCreateAppRoleMemberRequestBodyBuilder":
        self._batch_create_app_role_member_request_body.member_list = member_list
        return self

    def build(self) -> "BatchCreateAppRoleMemberRequestBody":
        return self._batch_create_app_role_member_request_body
