Interface Message.Builder

    • Method Detail

      • 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.
      • 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.
      • attachments

        Message.Builder attachments​(Collection<AttachmentOutput> attachments)

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

        Parameters:
        attachments - A file directly uploaded into an Amazon Q 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 web experience chat.

        Parameters:
        attachments - A file directly uploaded into an Amazon Q web experience chat.
        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 web experience message.

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

        Message.Builder messageId​(String messageId)

        The identifier of the Amazon Q web experience message.

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

        Message.Builder sourceAttribution​(Collection<SourceAttribution> sourceAttribution)

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

        Parameters:
        sourceAttribution - The source documents used to generate Amazon Q 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 web experience message.

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

        Message.Builder time​(Instant time)

        The timestamp of the first Amazon Q web experience message.

        Parameters:
        time - The timestamp of the first Amazon Q 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 message, whether HUMAN or AI generated.

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

        Message.Builder type​(MessageType type)

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

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