Interface KnowledgeBase.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<KnowledgeBase.Builder,
,KnowledgeBase> SdkBuilder<KnowledgeBase.Builder,
,KnowledgeBase> SdkPojo
- Enclosing class:
KnowledgeBase
-
Method Summary
Modifier and TypeMethodDescriptionThe time the knowledge base was created.description
(String description) The description of the knowledge base.failureReasons
(String... failureReasons) A list of reasons that the API operation on the knowledge base failed.failureReasons
(Collection<String> failureReasons) A list of reasons that the API operation on the knowledge base failed.knowledgeBaseArn
(String knowledgeBaseArn) The Amazon Resource Name (ARN) of the knowledge base.default KnowledgeBase.Builder
knowledgeBaseConfiguration
(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration) Contains details about the embeddings configuration of the knowledge base.knowledgeBaseConfiguration
(KnowledgeBaseConfiguration knowledgeBaseConfiguration) Contains details about the embeddings configuration of the knowledge base.knowledgeBaseId
(String knowledgeBaseId) The unique identifier of the knowledge base.The name of the knowledge base.The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.The status of the knowledge base.status
(KnowledgeBaseStatus status) The status of the knowledge base.default KnowledgeBase.Builder
storageConfiguration
(Consumer<StorageConfiguration.Builder> storageConfiguration) Contains details about the storage configuration of the knowledge base.storageConfiguration
(StorageConfiguration storageConfiguration) Contains details about the storage configuration of the knowledge base.The time the knowledge base was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
-
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.
-
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
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.
-
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.
-
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 theKnowledgeBaseConfiguration.Builder
avoiding the need to create one manually viaKnowledgeBaseConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toknowledgeBaseConfiguration(KnowledgeBaseConfiguration)
.- Parameters:
knowledgeBaseConfiguration
- a consumer that will call methods onKnowledgeBaseConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
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.
-
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:
-
-
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 theStorageConfiguration.Builder
avoiding the need to create one manually viaStorageConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostorageConfiguration(StorageConfiguration)
.- Parameters:
storageConfiguration
- a consumer that will call methods onStorageConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-