Interface CreateKnowledgeBaseRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BedrockAgentRequest.Builder
,Buildable
,CopyableBuilder<CreateKnowledgeBaseRequest.Builder,
,CreateKnowledgeBaseRequest> SdkBuilder<CreateKnowledgeBaseRequest.Builder,
,CreateKnowledgeBaseRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateKnowledgeBaseRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.description
(String description) A description of the knowledge base.knowledgeBaseConfiguration
(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration) Contains details about the embeddings model used for the knowledge base.knowledgeBaseConfiguration
(KnowledgeBaseConfiguration knowledgeBaseConfiguration) Contains details about the embeddings model used for the knowledge base.A name for the knowledge base.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.storageConfiguration
(Consumer<StorageConfiguration.Builder> storageConfiguration) Contains details about the configuration of the vector database used for the knowledge base.storageConfiguration
(StorageConfiguration storageConfiguration) Contains details about the configuration of the vector database used for the knowledge base.Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentRequest.Builder
build
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, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- Parameters:
clientToken
- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the knowledge base.
- Parameters:
description
- A description of the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfiguration
CreateKnowledgeBaseRequest.Builder knowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration) Contains details about the embeddings model used for the knowledge base.
- Parameters:
knowledgeBaseConfiguration
- Contains details about the embeddings model used for the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfiguration
default CreateKnowledgeBaseRequest.Builder knowledgeBaseConfiguration(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration) Contains details about the embeddings model used for 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:
-
name
A name for the knowledge base.
- Parameters:
name
- A name for 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.
-
storageConfiguration
Contains details about the configuration of the vector database used for the knowledge base.
- Parameters:
storageConfiguration
- Contains details about the configuration of the vector database used for the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageConfiguration
default CreateKnowledgeBaseRequest.Builder storageConfiguration(Consumer<StorageConfiguration.Builder> storageConfiguration) Contains details about the configuration of the vector database used for 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:
-
tags
Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.
- Parameters:
tags
- Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateKnowledgeBaseRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateKnowledgeBaseRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-