# 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 UpdateTaskRequest(object):
    _types = {
        "task_id": str,
        "folded": bool,
    }

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

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


class UpdateTaskRequestBuilder(object):
    def __init__(self) -> None:
        self._update_task_request = UpdateTaskRequest()

    def task_id(self, task_id: str) -> "UpdateTaskRequestBuilder":
        self._update_task_request.task_id = task_id
        return self

    def folded(self, folded: bool) -> "UpdateTaskRequestBuilder":
        self._update_task_request.folded = folded
        return self

    def build(self) -> "UpdateTaskRequest":
        return self._update_task_request
