Interface KnowledgeBaseConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<KnowledgeBaseConfiguration.Builder,KnowledgeBaseConfiguration>,SdkBuilder<KnowledgeBaseConfiguration.Builder,KnowledgeBaseConfiguration>,SdkPojo
- Enclosing class:
- KnowledgeBaseConfiguration
@Mutable @NotThreadSafe public static interface KnowledgeBaseConfiguration.Builder extends SdkPojo, CopyableBuilder<KnowledgeBaseConfiguration.Builder,KnowledgeBaseConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description KnowledgeBaseConfiguration.BuilderknowledgeBaseId(String knowledgeBaseId)The unique identifier for a knowledge base attached to the agent.default KnowledgeBaseConfiguration.BuilderretrievalConfiguration(Consumer<KnowledgeBaseRetrievalConfiguration.Builder> retrievalConfiguration)The configurations to apply to the knowledge base during query.KnowledgeBaseConfiguration.BuilderretrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration)The configurations to apply to the knowledge base during query.-
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 Detail
-
knowledgeBaseId
KnowledgeBaseConfiguration.Builder knowledgeBaseId(String knowledgeBaseId)
The unique identifier for a knowledge base attached to the agent.
- Parameters:
knowledgeBaseId- The unique identifier for a knowledge base attached to the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievalConfiguration
KnowledgeBaseConfiguration.Builder retrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration)
The configurations to apply to the knowledge base during query. For more information, see Query configurations.
- Parameters:
retrievalConfiguration- The configurations to apply to the knowledge base during query. For more information, see Query configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievalConfiguration
default KnowledgeBaseConfiguration.Builder retrievalConfiguration(Consumer<KnowledgeBaseRetrievalConfiguration.Builder> retrievalConfiguration)
The configurations to apply to the knowledge base during query. For more information, see Query configurations.
This is a convenience method that creates an instance of theKnowledgeBaseRetrievalConfiguration.Builderavoiding the need to create one manually viaKnowledgeBaseRetrievalConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretrievalConfiguration(KnowledgeBaseRetrievalConfiguration).- Parameters:
retrievalConfiguration- a consumer that will call methods onKnowledgeBaseRetrievalConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retrievalConfiguration(KnowledgeBaseRetrievalConfiguration)
-
-