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