Interface DocumentContent.Builder

  • Method Details

    • blob

      The contents of the document. Documents passed to the blob parameter must be base64 encoded. Your code might not need to encode the document file bytes if you're using an Amazon Web Services SDK to call Amazon Q Business APIs. If you are calling the Amazon Q Business endpoint directly using REST, you must base64 encode the contents before sending.

      Parameters:
      blob - The contents of the document. Documents passed to the blob parameter must be base64 encoded. Your code might not need to encode the document file bytes if you're using an Amazon Web Services SDK to call Amazon Q Business APIs. If you are calling the Amazon Q Business endpoint directly using REST, you must base64 encode the contents before sending.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3

      The path to the document in an Amazon S3 bucket.

      Parameters:
      s3 - The path to the document in an Amazon S3 bucket.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3

      The path to the document in an Amazon S3 bucket.

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

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

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