Class CfnPromptVersion.PromptTemplateConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptTemplateConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptVersion.PromptTemplateConfigurationProperty>
- Enclosing interface:
CfnPromptVersion.PromptTemplateConfigurationProperty
@Stability(Stable)
public static final class CfnPromptVersion.PromptTemplateConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptVersion.PromptTemplateConfigurationProperty>
A builder for
CfnPromptVersion.PromptTemplateConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.text
(IResolvable text) Sets the value ofCfnPromptVersion.PromptTemplateConfigurationProperty.getText()
Sets the value ofCfnPromptVersion.PromptTemplateConfigurationProperty.getText()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
text
@Stability(Stable) public CfnPromptVersion.PromptTemplateConfigurationProperty.Builder text(IResolvable text) Sets the value ofCfnPromptVersion.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 CfnPromptVersion.PromptTemplateConfigurationProperty.Builder text(CfnPromptVersion.TextPromptTemplateConfigurationProperty text) Sets the value ofCfnPromptVersion.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<CfnPromptVersion.PromptTemplateConfigurationProperty>
- Returns:
- a new instance of
CfnPromptVersion.PromptTemplateConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-