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