Interface DataSource.Builder

  • Method Details

    • createdAt

      DataSource.Builder createdAt(Instant createdAt)

      The time at which the data source was created.

      Parameters:
      createdAt - The time at which the data source was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataDeletionPolicy

      DataSource.Builder dataDeletionPolicy(String dataDeletionPolicy)

      The data deletion policy for the data source.

      Parameters:
      dataDeletionPolicy - The data deletion policy for the data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataDeletionPolicy

      DataSource.Builder dataDeletionPolicy(DataDeletionPolicy dataDeletionPolicy)

      The data deletion policy for the data source.

      Parameters:
      dataDeletionPolicy - The data deletion policy for the data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataSourceConfiguration

      DataSource.Builder dataSourceConfiguration(DataSourceConfiguration dataSourceConfiguration)

      The connection configuration for the data source.

      Parameters:
      dataSourceConfiguration - The connection configuration for the data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataSourceConfiguration

      default DataSource.Builder dataSourceConfiguration(Consumer<DataSourceConfiguration.Builder> dataSourceConfiguration)

      The connection configuration for the data source.

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

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

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

      DataSource.Builder dataSourceId(String dataSourceId)

      The unique identifier of the data source.

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

      DataSource.Builder description(String description)

      The description of the data source.

      Parameters:
      description - The description of the data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureReasons

      DataSource.Builder failureReasons(Collection<String> failureReasons)

      The detailed reasons on the failure to delete a data source.

      Parameters:
      failureReasons - The detailed reasons on the failure to delete a data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureReasons

      DataSource.Builder failureReasons(String... failureReasons)

      The detailed reasons on the failure to delete a data source.

      Parameters:
      failureReasons - The detailed reasons on the failure to delete a data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • knowledgeBaseId

      DataSource.Builder knowledgeBaseId(String knowledgeBaseId)

      The unique identifier of the knowledge base to which the data source belongs.

      Parameters:
      knowledgeBaseId - The unique identifier of the knowledge base to which the data source belongs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the data source.

      Parameters:
      name - The name of the data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serverSideEncryptionConfiguration

      DataSource.Builder serverSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)

      Contains details about the configuration of the server-side encryption.

      Parameters:
      serverSideEncryptionConfiguration - Contains details about the configuration of the server-side encryption.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serverSideEncryptionConfiguration

      default DataSource.Builder serverSideEncryptionConfiguration(Consumer<ServerSideEncryptionConfiguration.Builder> serverSideEncryptionConfiguration)

      Contains details about the configuration of the server-side encryption.

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

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

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

      DataSource.Builder status(String status)

      The status of the data source. The following statuses are possible:

      • Available – The data source has been created and is ready for ingestion into the knowledge base.

      • Deleting – The data source is being deleted.

      Parameters:
      status - The status of the data source. The following statuses are possible:

      • Available – The data source has been created and is ready for ingestion into the knowledge base.

      • Deleting – The data source is being deleted.

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

      The status of the data source. The following statuses are possible:

      • Available – The data source has been created and is ready for ingestion into the knowledge base.

      • Deleting – The data source is being deleted.

      Parameters:
      status - The status of the data source. The following statuses are possible:

      • Available – The data source has been created and is ready for ingestion into the knowledge base.

      • Deleting – The data source is being deleted.

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

      DataSource.Builder updatedAt(Instant updatedAt)

      The time at which the data source was last updated.

      Parameters:
      updatedAt - The time at which the data source was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vectorIngestionConfiguration

      DataSource.Builder vectorIngestionConfiguration(VectorIngestionConfiguration vectorIngestionConfiguration)

      Contains details about how to ingest the documents in the data source.

      Parameters:
      vectorIngestionConfiguration - Contains details about how to ingest the documents in the data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vectorIngestionConfiguration

      default DataSource.Builder vectorIngestionConfiguration(Consumer<VectorIngestionConfiguration.Builder> vectorIngestionConfiguration)

      Contains details about how to ingest the documents in the data source.

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

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

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