# 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 .export_ticket_message_content import ExportTicketMessageContent


class MigrationTicketMessage(object):
    _types = {
        "uuid": str,
        "user_id": str,
        "message_type": str,
        "content": ExportTicketMessageContent,
        "created_at_ms": str,
    }

    def __init__(self, d=None):
        self.uuid: Optional[str] = None
        self.user_id: Optional[str] = None
        self.message_type: Optional[str] = None
        self.content: Optional[ExportTicketMessageContent] = None
        self.created_at_ms: Optional[str] = None
        init(self, d, self._types)

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


class MigrationTicketMessageBuilder(object):
    def __init__(self) -> None:
        self._migration_ticket_message = MigrationTicketMessage()

    def uuid(self, uuid: str) -> "MigrationTicketMessageBuilder":
        self._migration_ticket_message.uuid = uuid
        return self

    def user_id(self, user_id: str) -> "MigrationTicketMessageBuilder":
        self._migration_ticket_message.user_id = user_id
        return self

    def message_type(self, message_type: str) -> "MigrationTicketMessageBuilder":
        self._migration_ticket_message.message_type = message_type
        return self

    def content(self, content: ExportTicketMessageContent) -> "MigrationTicketMessageBuilder":
        self._migration_ticket_message.content = content
        return self

    def created_at_ms(self, created_at_ms: str) -> "MigrationTicketMessageBuilder":
        self._migration_ticket_message.created_at_ms = created_at_ms
        return self

    def build(self) -> "MigrationTicketMessage":
        return self._migration_ticket_message
