Interface KnowledgeBase.Builder

  • Method Details

    • knowledgeBaseId

      KnowledgeBase.Builder knowledgeBaseId(String knowledgeBaseId)

      The unique identifier of the knowledge base.

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

      The name of the knowledge base.

      Parameters:
      name - The name of the knowledge base.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • knowledgeBaseArn

      KnowledgeBase.Builder knowledgeBaseArn(String knowledgeBaseArn)

      The Amazon Resource Name (ARN) of the knowledge base.

      Parameters:
      knowledgeBaseArn - The Amazon Resource Name (ARN) of the knowledge base.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      KnowledgeBase.Builder description(String description)

      The description of the knowledge base.

      Parameters:
      description - The description of the knowledge base.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • roleArn

      KnowledgeBase.Builder roleArn(String roleArn)

      The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.

      Parameters:
      roleArn - The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • knowledgeBaseConfiguration

      KnowledgeBase.Builder knowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration)

      Contains details about the embeddings configuration of the knowledge base.

      Parameters:
      knowledgeBaseConfiguration - Contains details about the embeddings configuration of the knowledge base.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • knowledgeBaseConfiguration

      default KnowledgeBase.Builder knowledgeBaseConfiguration(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration)

      Contains details about the embeddings configuration of the knowledge base.

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

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

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

      KnowledgeBase.Builder storageConfiguration(StorageConfiguration storageConfiguration)

      Contains details about the storage configuration of the knowledge base.

      Parameters:
      storageConfiguration - Contains details about the storage configuration of the knowledge base.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • storageConfiguration

      default KnowledgeBase.Builder storageConfiguration(Consumer<StorageConfiguration.Builder> storageConfiguration)

      Contains details about the storage configuration of the knowledge base.

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

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

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

      KnowledgeBase.Builder status(String status)

      The status of the knowledge base. The following statuses are possible:

      • CREATING – The knowledge base is being created.

      • ACTIVE – The knowledge base is ready to be queried.

      • DELETING – The knowledge base is being deleted.

      • UPDATING – The knowledge base is being updated.

      • FAILED – The knowledge base API operation failed.

      Parameters:
      status - The status of the knowledge base. The following statuses are possible:

      • CREATING – The knowledge base is being created.

      • ACTIVE – The knowledge base is ready to be queried.

      • DELETING – The knowledge base is being deleted.

      • UPDATING – The knowledge base is being updated.

      • FAILED – The knowledge base API operation failed.

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

      The status of the knowledge base. The following statuses are possible:

      • CREATING – The knowledge base is being created.

      • ACTIVE – The knowledge base is ready to be queried.

      • DELETING – The knowledge base is being deleted.

      • UPDATING – The knowledge base is being updated.

      • FAILED – The knowledge base API operation failed.

      Parameters:
      status - The status of the knowledge base. The following statuses are possible:

      • CREATING – The knowledge base is being created.

      • ACTIVE – The knowledge base is ready to be queried.

      • DELETING – The knowledge base is being deleted.

      • UPDATING – The knowledge base is being updated.

      • FAILED – The knowledge base API operation failed.

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

      KnowledgeBase.Builder createdAt(Instant createdAt)

      The time the knowledge base was created.

      Parameters:
      createdAt - The time the knowledge base was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      KnowledgeBase.Builder updatedAt(Instant updatedAt)

      The time the knowledge base was last updated.

      Parameters:
      updatedAt - The time the knowledge base was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureReasons

      KnowledgeBase.Builder failureReasons(Collection<String> failureReasons)

      A list of reasons that the API operation on the knowledge base failed.

      Parameters:
      failureReasons - A list of reasons that the API operation on the knowledge base failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureReasons

      KnowledgeBase.Builder failureReasons(String... failureReasons)

      A list of reasons that the API operation on the knowledge base failed.

      Parameters:
      failureReasons - A list of reasons that the API operation on the knowledge base failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadataConfigurations

      KnowledgeBase.Builder metadataConfigurations(Collection<MetadataConfiguration> metadataConfigurations)

      The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (ENABLED or DISABLED).

      If the update fails, the knowledge base status becomes UPDATE_UNSUCCESSFUL, the field configurations revert to their previous values, and failureReasons describes the cause. You can retry the update from UPDATE_UNSUCCESSFUL.

      Parameters:
      metadataConfigurations - The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (ENABLED or DISABLED).

      If the update fails, the knowledge base status becomes UPDATE_UNSUCCESSFUL, the field configurations revert to their previous values, and failureReasons describes the cause. You can retry the update from UPDATE_UNSUCCESSFUL.

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

      KnowledgeBase.Builder metadataConfigurations(MetadataConfiguration... metadataConfigurations)

      The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (ENABLED or DISABLED).

      If the update fails, the knowledge base status becomes UPDATE_UNSUCCESSFUL, the field configurations revert to their previous values, and failureReasons describes the cause. You can retry the update from UPDATE_UNSUCCESSFUL.

      Parameters:
      metadataConfigurations - The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (ENABLED or DISABLED).

      If the update fails, the knowledge base status becomes UPDATE_UNSUCCESSFUL, the field configurations revert to their previous values, and failureReasons describes the cause. You can retry the update from UPDATE_UNSUCCESSFUL.

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

      KnowledgeBase.Builder metadataConfigurations(Consumer<MetadataConfiguration.Builder>... metadataConfigurations)

      The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (ENABLED or DISABLED).

      If the update fails, the knowledge base status becomes UPDATE_UNSUCCESSFUL, the field configurations revert to their previous values, and failureReasons describes the cause. You can retry the update from UPDATE_UNSUCCESSFUL.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metadataConfigurations(List<MetadataConfiguration>).

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

      KnowledgeBase.Builder userContextModeForRetrieval(String userContextModeForRetrieval)

      The end-user identity that your knowledge base uses to filter retrieval results by document access controls.

      Parameters:
      userContextModeForRetrieval - The end-user identity that your knowledge base uses to filter retrieval results by document access controls.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • userContextModeForRetrieval

      KnowledgeBase.Builder userContextModeForRetrieval(UserContextModeForRetrieval userContextModeForRetrieval)

      The end-user identity that your knowledge base uses to filter retrieval results by document access controls.

      Parameters:
      userContextModeForRetrieval - The end-user identity that your knowledge base uses to filter retrieval results by document access controls.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • trustedIdentitySources

      KnowledgeBase.Builder trustedIdentitySources(Collection<TrustedIdentitySource> trustedIdentitySources)

      The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.

      Parameters:
      trustedIdentitySources - The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trustedIdentitySources

      KnowledgeBase.Builder trustedIdentitySources(TrustedIdentitySource... trustedIdentitySources)

      The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.

      Parameters:
      trustedIdentitySources - The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trustedIdentitySources

      KnowledgeBase.Builder trustedIdentitySources(Consumer<TrustedIdentitySource.Builder>... trustedIdentitySources)

      The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to trustedIdentitySources(List<TrustedIdentitySource>).

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