Interface UpdateKnowledgeBaseRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<UpdateKnowledgeBaseRequest.Builder,UpdateKnowledgeBaseRequest>,SdkBuilder<UpdateKnowledgeBaseRequest.Builder,UpdateKnowledgeBaseRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateKnowledgeBaseRequest
public static interface UpdateKnowledgeBaseRequest.Builder extends BedrockAgentRequest.Builder, SdkPojo, CopyableBuilder<UpdateKnowledgeBaseRequest.Builder,UpdateKnowledgeBaseRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UpdateKnowledgeBaseRequest.Builderdescription(String description)Specifies a new description for the knowledge base.default UpdateKnowledgeBaseRequest.BuilderknowledgeBaseConfiguration(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration)Specifies the configuration for the embeddings model used for the knowledge base.UpdateKnowledgeBaseRequest.BuilderknowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration)Specifies the configuration for the embeddings model used for the knowledge base.UpdateKnowledgeBaseRequest.BuilderknowledgeBaseId(String knowledgeBaseId)The unique identifier of the knowledge base to update.UpdateKnowledgeBaseRequest.Buildername(String name)Specifies a new name for the knowledge base.UpdateKnowledgeBaseRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateKnowledgeBaseRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)UpdateKnowledgeBaseRequest.BuilderroleArn(String roleArn)Specifies a different Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.default UpdateKnowledgeBaseRequest.BuilderstorageConfiguration(Consumer<StorageConfiguration.Builder> storageConfiguration)Specifies the configuration for the vector store used for the knowledge base.UpdateKnowledgeBaseRequest.BuilderstorageConfiguration(StorageConfiguration storageConfiguration)Specifies the configuration for the vector store used for the knowledge base.-
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, sdkFields
-
-
-
-
Method Detail
-
description
UpdateKnowledgeBaseRequest.Builder description(String description)
Specifies a new description for the knowledge base.
- Parameters:
description- Specifies a new description for the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfiguration
UpdateKnowledgeBaseRequest.Builder knowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration)
Specifies the configuration for the embeddings model used for the knowledge base. You must use the same configuration as when the knowledge base was created.
- Parameters:
knowledgeBaseConfiguration- Specifies the configuration for the embeddings model used for the knowledge base. You must use the same configuration as when the knowledge base was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfiguration
default UpdateKnowledgeBaseRequest.Builder knowledgeBaseConfiguration(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration)
Specifies the configuration for the embeddings model used for the knowledge base. You must use the same configuration as when the knowledge base was created.
This is a convenience method that creates an instance of theKnowledgeBaseConfiguration.Builderavoiding the need to create one manually viaKnowledgeBaseConfiguration.builder().When the
Consumercompletes,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:
knowledgeBaseConfiguration(KnowledgeBaseConfiguration)
-
knowledgeBaseId
UpdateKnowledgeBaseRequest.Builder knowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base to update.
- Parameters:
knowledgeBaseId- The unique identifier of the knowledge base to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
UpdateKnowledgeBaseRequest.Builder name(String name)
Specifies a new name for the knowledge base.
- Parameters:
name- Specifies a new name for the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
UpdateKnowledgeBaseRequest.Builder roleArn(String roleArn)
Specifies a different Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
- Parameters:
roleArn- Specifies a different 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
UpdateKnowledgeBaseRequest.Builder storageConfiguration(StorageConfiguration storageConfiguration)
Specifies the configuration for the vector store used for the knowledge base. You must use the same configuration as when the knowledge base was created.
- Parameters:
storageConfiguration- Specifies the configuration for the vector store used for the knowledge base. You must use the same configuration as when the knowledge base was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageConfiguration
default UpdateKnowledgeBaseRequest.Builder storageConfiguration(Consumer<StorageConfiguration.Builder> storageConfiguration)
Specifies the configuration for the vector store used for the knowledge base. You must use the same configuration as when the knowledge base was created.
This is a convenience method that creates an instance of theStorageConfiguration.Builderavoiding the need to create one manually viaStorageConfiguration.builder().When the
Consumercompletes,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:
storageConfiguration(StorageConfiguration)
-
overrideConfiguration
UpdateKnowledgeBaseRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateKnowledgeBaseRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-