Interface Message.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Message.Builder,Message>, SdkBuilder<Message.Builder,Message>, SdkPojo
Enclosing class:
Message

@Mutable @NotThreadSafe public static interface Message.Builder extends SdkPojo, CopyableBuilder<Message.Builder,Message>
  • Method Details

    • messageId

      Message.Builder messageId(String messageId)

      The identifier of the Amazon Q Business web experience message.

      Parameters:
      messageId - The identifier of the Amazon Q Business web experience message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • body

      Message.Builder body(String body)

      The content of the Amazon Q Business web experience message.

      Parameters:
      body - The content of the Amazon Q Business web experience message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • time

      The timestamp of the first Amazon Q Business web experience message.

      Parameters:
      time - The timestamp of the first Amazon Q Business web experience message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      Message.Builder type(String type)

      The type of Amazon Q Business message, whether HUMAN or AI generated.

      Parameters:
      type - The type of Amazon Q Business message, whether HUMAN or AI generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of Amazon Q Business message, whether HUMAN or AI generated.

      Parameters:
      type - The type of Amazon Q Business message, whether HUMAN or AI generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • attachments

      Message.Builder attachments(Collection<AttachmentOutput> attachments)

      A file directly uploaded into an Amazon Q Business web experience chat.

      Parameters:
      attachments - A file directly uploaded into an Amazon Q Business web experience chat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attachments

      Message.Builder attachments(AttachmentOutput... attachments)

      A file directly uploaded into an Amazon Q Business web experience chat.

      Parameters:
      attachments - A file directly uploaded into an Amazon Q Business web experience chat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attachments

      Message.Builder attachments(Consumer<AttachmentOutput.Builder>... attachments)

      A file directly uploaded into an Amazon Q Business web experience chat.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to attachments(List<AttachmentOutput>).

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

      Message.Builder sourceAttribution(Collection<SourceAttribution> sourceAttribution)

      The source documents used to generate Amazon Q Business web experience message.

      Parameters:
      sourceAttribution - The source documents used to generate Amazon Q Business web experience message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceAttribution

      Message.Builder sourceAttribution(SourceAttribution... sourceAttribution)

      The source documents used to generate Amazon Q Business web experience message.

      Parameters:
      sourceAttribution - The source documents used to generate Amazon Q Business web experience message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceAttribution

      Message.Builder sourceAttribution(Consumer<SourceAttribution.Builder>... sourceAttribution)

      The source documents used to generate Amazon Q Business web experience message.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sourceAttribution(List<SourceAttribution>).

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

      Message.Builder actionReview(ActionReview actionReview)
      Sets the value of the ActionReview property for this object.
      Parameters:
      actionReview - The new value for the ActionReview property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actionReview

      default Message.Builder actionReview(Consumer<ActionReview.Builder> actionReview)
      Sets the value of the ActionReview property for this object. This is a convenience method that creates an instance of the ActionReview.Builder avoiding the need to create one manually via ActionReview.builder().

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

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

      Message.Builder actionExecution(ActionExecution actionExecution)
      Sets the value of the ActionExecution property for this object.
      Parameters:
      actionExecution - The new value for the ActionExecution property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actionExecution

      default Message.Builder actionExecution(Consumer<ActionExecution.Builder> actionExecution)
      Sets the value of the ActionExecution property for this object. This is a convenience method that creates an instance of the ActionExecution.Builder avoiding the need to create one manually via ActionExecution.builder().

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

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