Interface FailedAttachmentEvent.Builder

All Superinterfaces:
Buildable, CopyableBuilder<FailedAttachmentEvent.Builder,FailedAttachmentEvent>, SdkBuilder<FailedAttachmentEvent.Builder,FailedAttachmentEvent>, SdkPojo
All Known Subinterfaces:
DefaultFailedAttachmentEvent.Builder
Enclosing class:
FailedAttachmentEvent

public static interface FailedAttachmentEvent.Builder extends SdkPojo, CopyableBuilder<FailedAttachmentEvent.Builder,FailedAttachmentEvent>
  • Method Details

    • conversationId

      FailedAttachmentEvent.Builder conversationId(String conversationId)

      The identifier of the conversation associated with the failed file upload.

      Parameters:
      conversationId - The identifier of the conversation associated with the failed file upload.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userMessageId

      FailedAttachmentEvent.Builder userMessageId(String userMessageId)

      The identifier of the end user chat message associated with the file upload.

      Parameters:
      userMessageId - The identifier of the end user chat message associated with the file upload.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • systemMessageId

      FailedAttachmentEvent.Builder systemMessageId(String systemMessageId)

      The identifier of the AI-generated message associated with the file upload.

      Parameters:
      systemMessageId - The identifier of the AI-generated message associated with the file upload.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attachment

      Sets the value of the Attachment property for this object.
      Parameters:
      attachment - The new value for the Attachment property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attachment

      Sets the value of the Attachment property for this object. 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 attachment(AttachmentOutput).

      Parameters:
      attachment - 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: