Interface DocumentContent.Builder

  • Method Details

    • custom

      Contains information about the content to ingest into a knowledge base connected to a custom data source.

      Parameters:
      custom - Contains information about the content to ingest into a knowledge base connected to a custom data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • custom

      Contains information about the content to ingest into a knowledge base connected to a custom data source.

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

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

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

      DocumentContent.Builder dataSourceType(String dataSourceType)

      The type of data source that is connected to the knowledge base to which to ingest this document.

      Parameters:
      dataSourceType - The type of data source that is connected to the knowledge base to which to ingest this document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataSourceType

      DocumentContent.Builder dataSourceType(ContentDataSourceType dataSourceType)

      The type of data source that is connected to the knowledge base to which to ingest this document.

      Parameters:
      dataSourceType - The type of data source that is connected to the knowledge base to which to ingest this document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • s3

      Contains information about the content to ingest into a knowledge base connected to an Amazon S3 data source

      Parameters:
      s3 - Contains information about the content to ingest into a knowledge base connected to an Amazon S3 data source
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3

      Contains information about the content to ingest into a knowledge base connected to an Amazon S3 data source

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

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

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