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