# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .app_role import AppRole


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

    def __init__(self, d=None):
        self.role: Optional[AppRole] = 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: AppRole) -> "UpdateAppRoleResponseBodyBuilder":
        self._update_app_role_response_body.role = role
        return self

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