# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class SubmitApproveNotificationResponseBody(object):
    _types = {
        "has_access": bool,
    }

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

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


class SubmitApproveNotificationResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._submit_approve_notification_response_body = SubmitApproveNotificationResponseBody()

    def has_access(self, has_access: bool) -> "SubmitApproveNotificationResponseBodyBuilder":
        self._submit_approve_notification_response_body.has_access = has_access
        return self

    def build(self) -> "SubmitApproveNotificationResponseBody":
        return self._submit_approve_notification_response_body
