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