# 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 .app_slash_command_i18n_text import AppSlashCommandI18nText


class AppSlashCommand(object):
    _types = {
        "command_id": str,
        "command": str,
        "description": AppSlashCommandI18nText,
        "create_time": str,
        "update_time": str,
    }

    def __init__(self, d=None):
        self.command_id: Optional[str] = None
        self.command: Optional[str] = None
        self.description: Optional[AppSlashCommandI18nText] = None
        self.create_time: Optional[str] = None
        self.update_time: Optional[str] = None
        init(self, d, self._types)

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


class AppSlashCommandBuilder(object):
    def __init__(self) -> None:
        self._app_slash_command = AppSlashCommand()

    def command_id(self, command_id: str) -> "AppSlashCommandBuilder":
        self._app_slash_command.command_id = command_id
        return self

    def command(self, command: str) -> "AppSlashCommandBuilder":
        self._app_slash_command.command = command
        return self

    def description(self, description: AppSlashCommandI18nText) -> "AppSlashCommandBuilder":
        self._app_slash_command.description = description
        return self

    def create_time(self, create_time: str) -> "AppSlashCommandBuilder":
        self._app_slash_command.create_time = create_time
        return self

    def update_time(self, update_time: str) -> "AppSlashCommandBuilder":
        self._app_slash_command.update_time = update_time
        return self

    def build(self) -> "AppSlashCommand":
        return self._app_slash_command
