# 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 .base_member import BaseMember


class CreatePermissionMemberResponseBody(object):
    _types = {
        "member": BaseMember,
    }

    def __init__(self, d=None):
        self.member: Optional[BaseMember] = None
        init(self, d, self._types)

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


class CreatePermissionMemberResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_permission_member_response_body = CreatePermissionMemberResponseBody()

    def member(self, member: BaseMember) -> "CreatePermissionMemberResponseBodyBuilder":
        self._create_permission_member_response_body.member = member
        return self

    def build(self) -> "CreatePermissionMemberResponseBody":
        return self._create_permission_member_response_body
