Interface MessageOutput.Builder

  • Method Details

    • value

      The value of a message data.

      Parameters:
      value - The value of a message data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • value

      The value of a message data.

      This is a convenience method that creates an instance of the MessageData.Builder avoiding the need to create one manually via MessageData.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to value(MessageData).

      Parameters:
      value - a consumer that will call methods on MessageData.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • messageId

      MessageOutput.Builder messageId(String messageId)

      The identifier of a message.

      Parameters:
      messageId - The identifier of a message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • participant

      MessageOutput.Builder participant(String participant)

      The participant of a message.

      Parameters:
      participant - The participant of a message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • participant

      MessageOutput.Builder participant(Participant participant)

      The participant of a message.

      Parameters:
      participant - The participant of a message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • timestamp

      MessageOutput.Builder timestamp(Instant timestamp)

      The timestamp of a message.

      Parameters:
      timestamp - The timestamp of a message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.