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
Modifier and TypeMethodDescriptiontemplateConfiguration(Consumer<KbTemplateConfiguration.Builder> templateConfiguration) The template configuration that defines how the data source connector crawls and indexes data for the knowledge base.templateConfiguration(KbTemplateConfiguration templateConfiguration) The template configuration that defines how the data source connector crawls and indexes data for the knowledge base.Methods 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
-
templateConfiguration
KnowledgeBaseConfiguration.Builder templateConfiguration(KbTemplateConfiguration templateConfiguration) The template configuration that defines how the data source connector crawls and indexes data for the knowledge base. The template structure varies by connector type. See
KbTemplateConfigurationfor connector-specific details.- Parameters:
templateConfiguration- The template configuration that defines how the data source connector crawls and indexes data for the knowledge base. The template structure varies by connector type. SeeKbTemplateConfigurationfor connector-specific details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
default KnowledgeBaseConfiguration.Builder templateConfiguration(Consumer<KbTemplateConfiguration.Builder> templateConfiguration) The template configuration that defines how the data source connector crawls and indexes data for the knowledge base. The template structure varies by connector type. See
This is a convenience method that creates an instance of theKbTemplateConfigurationfor connector-specific details.KbTemplateConfiguration.Builderavoiding the need to create one manually viaKbTemplateConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemplateConfiguration(KbTemplateConfiguration).- Parameters:
templateConfiguration- a consumer that will call methods onKbTemplateConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-