# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class SendNotification(object):
    _types = {
        "need_send_notification": bool,
        "language": int,
    }

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

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


class SendNotificationBuilder(object):
    def __init__(self) -> None:
        self._send_notification = SendNotification()

    def need_send_notification(self, need_send_notification: bool) -> "SendNotificationBuilder":
        self._send_notification.need_send_notification = need_send_notification
        return self

    def language(self, language: int) -> "SendNotificationBuilder":
        self._send_notification.language = language
        return self

    def build(self) -> "SendNotification":
        return self._send_notification
