Class CfnPrompt.PromptTemplateConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPrompt.PromptTemplateConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrompt.PromptTemplateConfigurationProperty>
- Enclosing interface:
CfnPrompt.PromptTemplateConfigurationProperty
@Stability(Stable)
public static final class CfnPrompt.PromptTemplateConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrompt.PromptTemplateConfigurationProperty>
A builder for
CfnPrompt.PromptTemplateConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.text
(IResolvable text) Sets the value ofCfnPrompt.PromptTemplateConfigurationProperty.getText()
Sets the value ofCfnPrompt.PromptTemplateConfigurationProperty.getText()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
text
@Stability(Stable) public CfnPrompt.PromptTemplateConfigurationProperty.Builder text(IResolvable text) Sets the value ofCfnPrompt.PromptTemplateConfigurationProperty.getText()
- Parameters:
text
- Contains configurations for the text in a message for a prompt. This parameter is required.- Returns:
this
-
text
@Stability(Stable) public CfnPrompt.PromptTemplateConfigurationProperty.Builder text(CfnPrompt.TextPromptTemplateConfigurationProperty text) Sets the value ofCfnPrompt.PromptTemplateConfigurationProperty.getText()
- Parameters:
text
- Contains configurations for the text in a message for a prompt. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPrompt.PromptTemplateConfigurationProperty>
- Returns:
- a new instance of
CfnPrompt.PromptTemplateConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-