# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .comment import Comment


class CreateTaskCommentResponseBody(object):
    _types = {
        "comment": Comment,
    }

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

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


class CreateTaskCommentResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_task_comment_response_body = CreateTaskCommentResponseBody()

    def comment(self, comment: Comment) -> "CreateTaskCommentResponseBodyBuilder":
        self._create_task_comment_response_body.comment = comment
        return self

    def build(self) -> "CreateTaskCommentResponseBody":
        return self._create_task_comment_response_body
