Interface ChatMessage.Builder

  • Method Details

    • author

      ChatMessage.Builder author(String author)

      The principal that authored the message.

      Parameters:
      author - The principal that authored the message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • author

      The principal that authored the message.

      Parameters:
      author - The principal that authored the message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • content

      ChatMessage.Builder content(String content)

      The message text content.

      Parameters:
      content - The message text content.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      ChatMessage.Builder createdAt(Instant createdAt)

      The timestamp when the message was created.

      Parameters:
      createdAt - The timestamp when the message was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sequenceNumber

      ChatMessage.Builder sequenceNumber(Long sequenceNumber)

      The position of this message in the session's sequence.

      Parameters:
      sequenceNumber - The position of this message in the session's sequence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.