Interface Attachment.Builder

  • Method Details

    • attachmentId

      Attachment.Builder attachmentId(String attachmentId)

      The identifier of the Amazon Q Business attachment.

      Parameters:
      attachmentId - The identifier of the Amazon Q Business attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conversationId

      Attachment.Builder conversationId(String conversationId)

      The identifier of the Amazon Q Business conversation the attachment is associated with.

      Parameters:
      conversationId - The identifier of the Amazon Q Business conversation the attachment is associated with.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Filename of the Amazon Q Business attachment.

      Parameters:
      name - Filename of the Amazon Q Business attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • copyFrom

      Attachment.Builder copyFrom(CopyFromSource copyFrom)

      A CopyFromSource containing a reference to the original source of the Amazon Q Business attachment.

      Parameters:
      copyFrom - A CopyFromSource containing a reference to the original source of the Amazon Q Business attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • copyFrom

      default Attachment.Builder copyFrom(Consumer<CopyFromSource.Builder> copyFrom)

      A CopyFromSource containing a reference to the original source of the Amazon Q Business attachment.

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

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

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

      Attachment.Builder fileType(String fileType)

      Filetype of the Amazon Q Business attachment.

      Parameters:
      fileType - Filetype of the Amazon Q Business attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fileSize

      Attachment.Builder fileSize(Integer fileSize)

      Size in bytes of the Amazon Q Business attachment.

      Parameters:
      fileSize - Size in bytes of the Amazon Q Business attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • md5chksum

      Attachment.Builder md5chksum(String md5chksum)

      MD5 checksum of the Amazon Q Business attachment contents.

      Parameters:
      md5chksum - MD5 checksum of the Amazon Q Business attachment contents.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Attachment.Builder createdAt(Instant createdAt)

      The Unix timestamp when the Amazon Q Business attachment was created.

      Parameters:
      createdAt - The Unix timestamp when the Amazon Q Business attachment was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      Attachment.Builder status(String status)

      AttachmentStatus of the Amazon Q Business attachment.

      Parameters:
      status - AttachmentStatus of the Amazon Q Business attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      AttachmentStatus of the Amazon Q Business attachment.

      Parameters:
      status - AttachmentStatus of the Amazon Q Business attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • error

      ErrorDetail providing information about a Amazon Q Business attachment error.

      Parameters:
      error - ErrorDetail providing information about a Amazon Q Business attachment error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • error

      ErrorDetail providing information about a Amazon Q Business attachment error.

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

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

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