# 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 .role import Role


class UpdateAppRoleResponseBody(object):
    _types = {
        "role": Role,
    }

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

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


class UpdateAppRoleResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._update_app_role_response_body = UpdateAppRoleResponseBody()

    def role(self, role: Role) -> "UpdateAppRoleResponseBodyBuilder":
        self._update_app_role_response_body.role = role
        return self

    def build(self) -> "UpdateAppRoleResponseBody":
        return self._update_app_role_response_body
