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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextPromptTemplateConfiguration.BuilderinputVariables(Collection<PromptInputVariable> inputVariables)An array of the variables in the prompt template.TextPromptTemplateConfiguration.BuilderinputVariables(Consumer<PromptInputVariable.Builder>... inputVariables)An array of the variables in the prompt template.TextPromptTemplateConfiguration.BuilderinputVariables(PromptInputVariable... inputVariables)An array of the variables in the prompt template.TextPromptTemplateConfiguration.Buildertext(String text)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 Detail
-
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
TextPromptTemplateConfiguration.Builder inputVariables(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
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 to#inputVariables(List.) - 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:
#inputVariables(java.util.Collection)
-
text
TextPromptTemplateConfiguration.Builder text(String 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.
-
-