Class CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty>
- Enclosing interface:
CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty
@Stability(Stable)
public static final class CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cachePoint(IResolvable cachePoint) inputVariables(List<? extends Object> inputVariables) inputVariables(IResolvable inputVariables)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cachePoint
@Stability(Stable) public CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty.Builder cachePoint(IResolvable cachePoint) Sets the value ofCfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty.getCachePoint()- Parameters:
cachePoint- A cache checkpoint within a template configuration.- Returns:
this
-
cachePoint
@Stability(Stable) public CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty.Builder cachePoint(CfnPromptVersionPropsMixin.CachePointBlockProperty cachePoint) Sets the value ofCfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty.getCachePoint()- Parameters:
cachePoint- A cache checkpoint within a template configuration.- Returns:
this
-
inputVariables
@Stability(Stable) public CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty.Builder inputVariables(IResolvable inputVariables) Sets the value ofCfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty.getInputVariables()- Parameters:
inputVariables- An array of the variables in the prompt template.- Returns:
this
-
inputVariables
@Stability(Stable) public CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty.Builder inputVariables(List<? extends Object> inputVariables) Sets the value ofCfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty.getInputVariables()- Parameters:
inputVariables- An array of the variables in the prompt template.- Returns:
this
-
text
@Stability(Stable) public CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty.Builder text(String text) - Parameters:
text- The message for the prompt.- Returns:
this
-
build
@Stability(Stable) public CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty>- Returns:
- a new instance of
CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-