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