# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class AddTasklistTaskRequestBody(object):
    _types = {
        "tasklist_guid": str,
        "section_guid": str,
    }

    def __init__(self, d=None):
        self.tasklist_guid: Optional[str] = None
        self.section_guid: Optional[str] = None
        init(self, d, self._types)

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


class AddTasklistTaskRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._add_tasklist_task_request_body = AddTasklistTaskRequestBody()

    def tasklist_guid(self, tasklist_guid: str) -> "AddTasklistTaskRequestBodyBuilder":
        self._add_tasklist_task_request_body.tasklist_guid = tasklist_guid
        return self

    def section_guid(self, section_guid: str) -> "AddTasklistTaskRequestBodyBuilder":
        self._add_tasklist_task_request_body.section_guid = section_guid
        return self

    def build(self) -> "AddTasklistTaskRequestBody":
        return self._add_tasklist_task_request_body
