# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .display_app_v2 import DisplayAppV2


class UpdateAppResponseBody(object):
    _types = {
        "app": DisplayAppV2,
    }

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

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


class UpdateAppResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._update_app_response_body = UpdateAppResponseBody()

    def app(self, app: DisplayAppV2) -> "UpdateAppResponseBodyBuilder":
        self._update_app_response_body.app = app
        return self

    def build(self) -> "UpdateAppResponseBody":
        return self._update_app_response_body
