# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .functional_role_member import FunctionalRoleMember


class GetFunctionalRoleMemberResponseBody(object):
    _types = {
        "member": FunctionalRoleMember,
    }

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

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


class GetFunctionalRoleMemberResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_functional_role_member_response_body = GetFunctionalRoleMemberResponseBody()

    def member(self, member: FunctionalRoleMember) -> "GetFunctionalRoleMemberResponseBodyBuilder":
        self._get_functional_role_member_response_body.member = member
        return self

    def build(self) -> "GetFunctionalRoleMemberResponseBody":
        return self._get_functional_role_member_response_body
