# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class UpdateAppRequestBody(object):
    _types = {
        "name": str,
        "is_advanced": bool,
    }

    def __init__(self, d=None):
        self.name: Optional[str] = None
        self.is_advanced: Optional[bool] = None
        init(self, d, self._types)

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


class UpdateAppRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._update_app_request_body = UpdateAppRequestBody()

    def name(self, name: str) -> "UpdateAppRequestBodyBuilder":
        self._update_app_request_body.name = name
        return self

    def is_advanced(self, is_advanced: bool) -> "UpdateAppRequestBodyBuilder":
        self._update_app_request_body.is_advanced = is_advanced
        return self

    def build(self) -> "UpdateAppRequestBody":
        return self._update_app_request_body
