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.cachePoint(IResolvable cachePoint) Sets the value ofCfnPrompt.SystemContentBlockProperty.getCachePoint()cachePoint(CfnPrompt.CachePointBlockProperty cachePoint) Sets the value ofCfnPrompt.SystemContentBlockProperty.getCachePoint()Sets the value ofCfnPrompt.SystemContentBlockProperty.getText()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cachePoint
@Stability(Stable) public CfnPrompt.SystemContentBlockProperty.Builder cachePoint(IResolvable cachePoint) Sets the value ofCfnPrompt.SystemContentBlockProperty.getCachePoint()- Parameters:
cachePoint- CachePoint to include in the system prompt.- Returns:
this
-
cachePoint
@Stability(Stable) public CfnPrompt.SystemContentBlockProperty.Builder cachePoint(CfnPrompt.CachePointBlockProperty cachePoint) Sets the value ofCfnPrompt.SystemContentBlockProperty.getCachePoint()- Parameters:
cachePoint- CachePoint to include in the system prompt.- Returns:
this
-
text
Sets the value ofCfnPrompt.SystemContentBlockProperty.getText()- Parameters:
text- A system prompt for the model.- 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
-