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