Interface ExtractionConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ExtractionConfiguration.Builder,,ExtractionConfiguration> SdkBuilder<ExtractionConfiguration.Builder,,ExtractionConfiguration> SdkPojo
- Enclosing class:
ExtractionConfiguration
@Mutable
@NotThreadSafe
public static interface ExtractionConfiguration.Builder
extends SdkPojo, CopyableBuilder<ExtractionConfiguration.Builder,ExtractionConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExtractionConfiguration.BuildernotFoundBehavior(Consumer<ExtractionDefinitionNotFoundBehavior.Builder> notFoundBehavior) The behavior when the extraction cannot find the specified data in the interaction.notFoundBehavior(ExtractionDefinitionNotFoundBehavior notFoundBehavior) The behavior when the extraction cannot find the specified data in the interaction.promptHint(String promptHint) The prompt hint that guides the extraction.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
-
promptHint
The prompt hint that guides the extraction. This text tells the generative AI model what data to look for in the customer interaction.
- Parameters:
promptHint- The prompt hint that guides the extraction. This text tells the generative AI model what data to look for in the customer interaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notFoundBehavior
ExtractionConfiguration.Builder notFoundBehavior(ExtractionDefinitionNotFoundBehavior notFoundBehavior) The behavior when the extraction cannot find the specified data in the interaction.
- Parameters:
notFoundBehavior- The behavior when the extraction cannot find the specified data in the interaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notFoundBehavior
default ExtractionConfiguration.Builder notFoundBehavior(Consumer<ExtractionDefinitionNotFoundBehavior.Builder> notFoundBehavior) The behavior when the extraction cannot find the specified data in the interaction.
This is a convenience method that creates an instance of theExtractionDefinitionNotFoundBehavior.Builderavoiding the need to create one manually viaExtractionDefinitionNotFoundBehavior.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonotFoundBehavior(ExtractionDefinitionNotFoundBehavior).- Parameters:
notFoundBehavior- a consumer that will call methods onExtractionDefinitionNotFoundBehavior.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-