# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .comment import Comment


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

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

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


class PatchCommentResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._patch_comment_response_body = PatchCommentResponseBody()

    def comment(self, comment: Comment) -> "PatchCommentResponseBodyBuilder":
        self._patch_comment_response_body.comment = comment
        return self

    def build(self) -> "PatchCommentResponseBody":
        return self._patch_comment_response_body
