Interface PromptFlowNodeConfiguration.Builder
- All Superinterfaces:
 Buildable,CopyableBuilder<PromptFlowNodeConfiguration.Builder,,PromptFlowNodeConfiguration> SdkBuilder<PromptFlowNodeConfiguration.Builder,,PromptFlowNodeConfiguration> SdkPojo
- Enclosing class:
 PromptFlowNodeConfiguration
public static interface PromptFlowNodeConfiguration.Builder
extends SdkPojo, CopyableBuilder<PromptFlowNodeConfiguration.Builder,PromptFlowNodeConfiguration> 
- 
Method Summary
Modifier and TypeMethodDescriptionguardrailConfiguration(Consumer<GuardrailConfiguration.Builder> guardrailConfiguration) Contains configurations for a guardrail to apply to the prompt in this node and the response generated from it.guardrailConfiguration(GuardrailConfiguration guardrailConfiguration) Contains configurations for a guardrail to apply to the prompt in this node and the response generated from it.sourceConfiguration(Consumer<PromptFlowNodeSourceConfiguration.Builder> sourceConfiguration) Specifies whether the prompt is from Prompt management or defined inline.sourceConfiguration(PromptFlowNodeSourceConfiguration sourceConfiguration) Specifies whether the prompt is from Prompt management or defined inline.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
- 
guardrailConfiguration
PromptFlowNodeConfiguration.Builder guardrailConfiguration(GuardrailConfiguration guardrailConfiguration) Contains configurations for a guardrail to apply to the prompt in this node and the response generated from it.
- Parameters:
 guardrailConfiguration- Contains configurations for a guardrail to apply to the prompt in this node and the response generated from it.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
guardrailConfiguration
default PromptFlowNodeConfiguration.Builder guardrailConfiguration(Consumer<GuardrailConfiguration.Builder> guardrailConfiguration) Contains configurations for a guardrail to apply to the prompt in this node and the response generated from it.
This is a convenience method that creates an instance of theGuardrailConfiguration.Builderavoiding the need to create one manually viaGuardrailConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toguardrailConfiguration(GuardrailConfiguration).- Parameters:
 guardrailConfiguration- a consumer that will call methods onGuardrailConfiguration.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
sourceConfiguration
PromptFlowNodeConfiguration.Builder sourceConfiguration(PromptFlowNodeSourceConfiguration sourceConfiguration) Specifies whether the prompt is from Prompt management or defined inline.
- Parameters:
 sourceConfiguration- Specifies whether the prompt is from Prompt management or defined inline.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
sourceConfiguration
default PromptFlowNodeConfiguration.Builder sourceConfiguration(Consumer<PromptFlowNodeSourceConfiguration.Builder> sourceConfiguration) Specifies whether the prompt is from Prompt management or defined inline.
This is a convenience method that creates an instance of thePromptFlowNodeSourceConfiguration.Builderavoiding the need to create one manually viaPromptFlowNodeSourceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceConfiguration(PromptFlowNodeSourceConfiguration).- Parameters:
 sourceConfiguration- a consumer that will call methods onPromptFlowNodeSourceConfiguration.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -