# 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 .app_role import AppRole


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

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

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


class CreateAppRoleResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_app_role_response_body = CreateAppRoleResponseBody()

    def role(self, role: AppRole) -> "CreateAppRoleResponseBodyBuilder":
        self._create_app_role_response_body.role = role
        return self

    def build(self) -> "CreateAppRoleResponseBody":
        return self._create_app_role_response_body
