Interface TextPromptTemplateConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TextPromptTemplateConfiguration.Builder,,TextPromptTemplateConfiguration> SdkBuilder<TextPromptTemplateConfiguration.Builder,,TextPromptTemplateConfiguration> SdkPojo
- Enclosing class:
TextPromptTemplateConfiguration
public static interface TextPromptTemplateConfiguration.Builder
extends SdkPojo, CopyableBuilder<TextPromptTemplateConfiguration.Builder,TextPromptTemplateConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptioninputVariables(Collection<PromptInputVariable> inputVariables) An array of the variables in the prompt template.inputVariables(Consumer<PromptInputVariable.Builder>... inputVariables) An array of the variables in the prompt template.inputVariables(PromptInputVariable... inputVariables) An array of the variables in the prompt template.The message for the prompt.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, sdkFields
-
Method Details
-
inputVariables
TextPromptTemplateConfiguration.Builder inputVariables(Collection<PromptInputVariable> inputVariables) An array of the variables in the prompt template.
- Parameters:
inputVariables- An array of the variables in the prompt template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputVariables
An array of the variables in the prompt template.
- Parameters:
inputVariables- An array of the variables in the prompt template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputVariables
TextPromptTemplateConfiguration.Builder inputVariables(Consumer<PromptInputVariable.Builder>... inputVariables) An array of the variables in the prompt template.
This is a convenience method that creates an instance of thePromptInputVariable.Builderavoiding the need to create one manually viaPromptInputVariable.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinputVariables(List<PromptInputVariable>).- Parameters:
inputVariables- a consumer that will call methods onPromptInputVariable.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
text
The message for the prompt.
- Parameters:
text- The message for the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-