Interface GetDocumentContentRequest.Builder

  • Method Details

    • dataSourceId

      GetDocumentContentRequest.Builder dataSourceId(String dataSourceId)

      The unique identifier of the data source that contains the document.

      Parameters:
      dataSourceId - The unique identifier of the data source that contains the document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • documentId

      GetDocumentContentRequest.Builder documentId(String documentId)

      The unique identifier of the document to retrieve content for.

      Parameters:
      documentId - The unique identifier of the document to retrieve content for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • knowledgeBaseId

      GetDocumentContentRequest.Builder knowledgeBaseId(String knowledgeBaseId)

      The unique identifier of the knowledge base that contains the document.

      Parameters:
      knowledgeBaseId - The unique identifier of the knowledge base that contains the document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mediaId

      The unique identifier (in UUID format) of an image embedded in the specified document. Set this parameter to the _media_id value in the metadata of the corresponding Retrieve result. If you specify this parameter, the response contains a pre-signed URL for the image instead of the document, and you must omit outputFormat or set it to RAW.

      Parameters:
      mediaId - The unique identifier (in UUID format) of an image embedded in the specified document. Set this parameter to the _media_id value in the metadata of the corresponding Retrieve result. If you specify this parameter, the response contains a pre-signed URL for the image instead of the document, and you must omit outputFormat or set it to RAW.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outputFormat

      GetDocumentContentRequest.Builder outputFormat(String outputFormat)

      The output format for the content. You can specify one of the following values:

      RAW

      Returns the original document, or the selected image if you specify mediaId.

      EXTRACTED

      Returns parsed document text as JSON.

      If you omit this parameter, the default is RAW. You can't use EXTRACTED with mediaId.

      Parameters:
      outputFormat - The output format for the content. You can specify one of the following values:

      RAW

      Returns the original document, or the selected image if you specify mediaId.

      EXTRACTED

      Returns parsed document text as JSON.

      If you omit this parameter, the default is RAW. You can't use EXTRACTED with mediaId.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • outputFormat

      The output format for the content. You can specify one of the following values:

      RAW

      Returns the original document, or the selected image if you specify mediaId.

      EXTRACTED

      Returns parsed document text as JSON.

      If you omit this parameter, the default is RAW. You can't use EXTRACTED with mediaId.

      Parameters:
      outputFormat - The output format for the content. You can specify one of the following values:

      RAW

      Returns the original document, or the selected image if you specify mediaId.

      EXTRACTED

      Returns parsed document text as JSON.

      If you omit this parameter, the default is RAW. You can't use EXTRACTED with mediaId.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • userContext

      Contains information about the user making the request. This is used for access control filtering to ensure that results only include documents the user is authorized to access.

      Parameters:
      userContext - Contains information about the user making the request. This is used for access control filtering to ensure that results only include documents the user is authorized to access.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userContext

      Contains information about the user making the request. This is used for access control filtering to ensure that results only include documents the user is authorized to access.

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

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

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

      GetDocumentContentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.