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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cachePoint(IResolvable cachePoint) Sets the value ofCfnPrompt.ContentBlockProperty.getCachePoint()cachePoint(CfnPrompt.CachePointBlockProperty cachePoint) Sets the value ofCfnPrompt.ContentBlockProperty.getCachePoint()Sets the value ofCfnPrompt.ContentBlockProperty.getText()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cachePoint
Sets the value ofCfnPrompt.ContentBlockProperty.getCachePoint()- Parameters:
cachePoint- CachePoint to include in the message.- Returns:
this
-
cachePoint
@Stability(Stable) public CfnPrompt.ContentBlockProperty.Builder cachePoint(CfnPrompt.CachePointBlockProperty cachePoint) Sets the value ofCfnPrompt.ContentBlockProperty.getCachePoint()- Parameters:
cachePoint- CachePoint to include in the message.- Returns:
this
-
text
Sets the value ofCfnPrompt.ContentBlockProperty.getText()- Parameters:
text- Text to include in the message.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrompt.ContentBlockProperty>- Returns:
- a new instance of
CfnPrompt.ContentBlockProperty - Throws:
NullPointerException- if any required attribute was not provided
-