# 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 MigrationTicketComment(object):
    _types = {
        "user_id": int,
        "create_at_ms": str,
        "content": str,
    }

    def __init__(self, d=None):
        self.user_id: Optional[int] = None
        self.create_at_ms: Optional[str] = None
        self.content: Optional[str] = None
        init(self, d, self._types)

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


class MigrationTicketCommentBuilder(object):
    def __init__(self) -> None:
        self._migration_ticket_comment = MigrationTicketComment()

    def user_id(self, user_id: int) -> "MigrationTicketCommentBuilder":
        self._migration_ticket_comment.user_id = user_id
        return self

    def create_at_ms(self, create_at_ms: str) -> "MigrationTicketCommentBuilder":
        self._migration_ticket_comment.create_at_ms = create_at_ms
        return self

    def content(self, content: str) -> "MigrationTicketCommentBuilder":
        self._migration_ticket_comment.content = content
        return self

    def build(self) -> "MigrationTicketComment":
        return self._migration_ticket_comment
