# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .functional_role_member_result import FunctionalRoleMemberResult


class BatchCreateFunctionalRoleMemberResponseBody(object):
    _types = {
        "results": List[FunctionalRoleMemberResult],
    }

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

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


class BatchCreateFunctionalRoleMemberResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_create_functional_role_member_response_body = BatchCreateFunctionalRoleMemberResponseBody()

    def results(self,
                results: List[FunctionalRoleMemberResult]) -> "BatchCreateFunctionalRoleMemberResponseBodyBuilder":
        self._batch_create_functional_role_member_response_body.results = results
        return self

    def build(self) -> "BatchCreateFunctionalRoleMemberResponseBody":
        return self._batch_create_functional_role_member_response_body
