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