Interface UpdateKnowledgeBaseRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<UpdateKnowledgeBaseRequest.Builder,,UpdateKnowledgeBaseRequest> SdkBuilder<UpdateKnowledgeBaseRequest.Builder,,UpdateKnowledgeBaseRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateKnowledgeBaseRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) Specifies a new description for the knowledge base.knowledgeBaseConfiguration(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration) Specifies the configuration for the embeddings model used for the knowledge base.knowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration) Specifies the configuration for the embeddings model used for the knowledge base.knowledgeBaseId(String knowledgeBaseId) The unique identifier of the knowledge base to update.metadataConfigurations(Collection<MetadataConfiguration> metadataConfigurations) Specifies up to 30 custom metadata field configurations for a managed knowledge base.metadataConfigurations(Consumer<MetadataConfiguration.Builder>... metadataConfigurations) Specifies up to 30 custom metadata field configurations for a managed knowledge base.metadataConfigurations(MetadataConfiguration... metadataConfigurations) Specifies up to 30 custom metadata field configurations for a managed knowledge base.Specifies a new 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.Specifies a different Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.storageConfiguration(Consumer<StorageConfiguration.Builder> storageConfiguration) Specifies the configuration for the vector store used for the knowledge base.storageConfiguration(StorageConfiguration storageConfiguration) Specifies the configuration for the vector store used for the knowledge base.trustedIdentitySources(Collection<TrustedIdentitySource> trustedIdentitySources) Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions.trustedIdentitySources(Consumer<TrustedIdentitySource.Builder>... trustedIdentitySources) Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions.trustedIdentitySources(TrustedIdentitySource... trustedIdentitySources) Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions.userContextModeForRetrieval(String userContextModeForRetrieval) Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls.userContextModeForRetrieval(UserContextModeForRetrieval userContextModeForRetrieval) Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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.
-
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.
-
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.
-
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:
-
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:
-
metadataConfigurations
UpdateKnowledgeBaseRequest.Builder metadataConfigurations(Collection<MetadataConfiguration> metadataConfigurations) Specifies up to 30 custom metadata field configurations for a managed knowledge base.
The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.
- Parameters:
metadataConfigurations- Specifies up to 30 custom metadata field configurations for a managed knowledge base.The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataConfigurations
UpdateKnowledgeBaseRequest.Builder metadataConfigurations(MetadataConfiguration... metadataConfigurations) Specifies up to 30 custom metadata field configurations for a managed knowledge base.
The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.
- Parameters:
metadataConfigurations- Specifies up to 30 custom metadata field configurations for a managed knowledge base.The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataConfigurations
UpdateKnowledgeBaseRequest.Builder metadataConfigurations(Consumer<MetadataConfiguration.Builder>... metadataConfigurations) Specifies up to 30 custom metadata field configurations for a managed knowledge base.
The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.
This is a convenience method that creates an instance of theMetadataConfiguration.Builderavoiding the need to create one manually viaMetadataConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometadataConfigurations(List<MetadataConfiguration>).- Parameters:
metadataConfigurations- a consumer that will call methods onMetadataConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userContextModeForRetrieval
Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base keeps its current value.
- Parameters:
userContextModeForRetrieval- Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base keeps its current value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userContextModeForRetrieval
UpdateKnowledgeBaseRequest.Builder userContextModeForRetrieval(UserContextModeForRetrieval userContextModeForRetrieval) Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base keeps its current value.
- Parameters:
userContextModeForRetrieval- Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base keeps its current value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
trustedIdentitySources
UpdateKnowledgeBaseRequest.Builder trustedIdentitySources(Collection<TrustedIdentitySource> trustedIdentitySources) Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.
The list that you specify replaces the existing list. To remove all identity sources, specify an empty list. If you don't specify a list, the knowledge base keeps its current identity sources.
- Parameters:
trustedIdentitySources- Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.The list that you specify replaces the existing list. To remove all identity sources, specify an empty list. If you don't specify a list, the knowledge base keeps its current identity sources.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trustedIdentitySources
UpdateKnowledgeBaseRequest.Builder trustedIdentitySources(TrustedIdentitySource... trustedIdentitySources) Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.
The list that you specify replaces the existing list. To remove all identity sources, specify an empty list. If you don't specify a list, the knowledge base keeps its current identity sources.
- Parameters:
trustedIdentitySources- Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.The list that you specify replaces the existing list. To remove all identity sources, specify an empty list. If you don't specify a list, the knowledge base keeps its current identity sources.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trustedIdentitySources
UpdateKnowledgeBaseRequest.Builder trustedIdentitySources(Consumer<TrustedIdentitySource.Builder>... trustedIdentitySources) Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.
The list that you specify replaces the existing list. To remove all identity sources, specify an empty list. If you don't specify a list, the knowledge base keeps its current identity sources.
This is a convenience method that creates an instance of theTrustedIdentitySource.Builderavoiding the need to create one manually viaTrustedIdentitySource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrustedIdentitySources(List<TrustedIdentitySource>).- Parameters:
trustedIdentitySources- a consumer that will call methods onTrustedIdentitySource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateKnowledgeBaseRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateKnowledgeBaseRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-