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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.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
-
toolSpec
Sets the value ofCfnPrompt.ToolProperty.getToolSpec()
- Parameters:
toolSpec
- The specfication for the tool. This parameter is required.- 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. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPrompt.ToolProperty>
- Returns:
- a new instance of
CfnPrompt.ToolProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-