Interface DocumentContent.Builder

    • Method Detail

      • blob

        DocumentContent.Builder blob​(SdkBytes 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 APIs. If you are calling the Amazon Q 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 APIs. If you are calling the Amazon Q 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

        DocumentContent.Builder s3​(S3 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.