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
Modifier and TypeMethodDescriptioncachePoint
(Consumer<CachePointBlock.Builder> cachePoint) A cache checkpoint within a template configuration.cachePoint
(CachePointBlock cachePoint) A cache checkpoint within a template configuration.inputVariables
(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, sdkFieldNameToField, sdkFields
-
Method Details
-
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.Builder
avoiding the need to create one manually viaCachePointBlock.builder()
.When the
Consumer
completes,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:
-
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.
-