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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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.Builder
avoiding the need to create one manually viaPromptInputVariable.builder()
.When the
Consumer
completes,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.
-