Interface TextPromptTemplateConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TextPromptTemplateConfiguration.Builder,TextPromptTemplateConfiguration>,SdkBuilder<TextPromptTemplateConfiguration.Builder,TextPromptTemplateConfiguration>,SdkPojo
- Enclosing class:
- TextPromptTemplateConfiguration
@Mutable @NotThreadSafe public static interface TextPromptTemplateConfiguration.Builder extends SdkPojo, CopyableBuilder<TextPromptTemplateConfiguration.Builder,TextPromptTemplateConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TextPromptTemplateConfiguration.BuildercachePoint(Consumer<CachePointBlock.Builder> cachePoint)A cache checkpoint within a template configuration.TextPromptTemplateConfiguration.BuildercachePoint(CachePointBlock cachePoint)A cache checkpoint within a template configuration.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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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.
-
cachePoint
TextPromptTemplateConfiguration.Builder cachePoint(CachePointBlock cachePoint)
A cache checkpoint within a template configuration.
- Parameters:
cachePoint- A cache checkpoint within a template configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachePoint
default TextPromptTemplateConfiguration.Builder cachePoint(Consumer<CachePointBlock.Builder> cachePoint)
A cache checkpoint within a template configuration.
This is a convenience method that creates an instance of theCachePointBlock.Builderavoiding the need to create one manually viaCachePointBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocachePoint(CachePointBlock).- Parameters:
cachePoint- a consumer that will call methods onCachePointBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
cachePoint(CachePointBlock)
-
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)
-
-