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