# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class Reminder(object):
    _types = {
        "minutes": int,
    }

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

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


class ReminderBuilder(object):
    def __init__(self) -> None:
        self._reminder = Reminder()

    def minutes(self, minutes: int) -> "ReminderBuilder":
        self._reminder.minutes = minutes
        return self

    def build(self) -> "Reminder":
        return self._reminder
