# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .task import Task


class RemoveRemindersTaskResponseBody(object):
    _types = {
        "task": Task,
    }

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

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


class RemoveRemindersTaskResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._remove_reminders_task_response_body = RemoveRemindersTaskResponseBody()

    def task(self, task: Task) -> "RemoveRemindersTaskResponseBodyBuilder":
        self._remove_reminders_task_response_body.task = task
        return self

    def build(self) -> "RemoveRemindersTaskResponseBody":
        return self._remove_reminders_task_response_body
