Class CfnPrompt.ToolSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPrompt.ToolSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrompt.ToolSpecificationProperty>
- Enclosing interface:
CfnPrompt.ToolSpecificationProperty
@Stability(Stable)
public static final class CfnPrompt.ToolSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrompt.ToolSpecificationProperty>
A builder for
CfnPrompt.ToolSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnPrompt.ToolSpecificationProperty.getDescription()inputSchema(IResolvable inputSchema) Sets the value ofCfnPrompt.ToolSpecificationProperty.getInputSchema()inputSchema(CfnPrompt.ToolInputSchemaProperty inputSchema) Sets the value ofCfnPrompt.ToolSpecificationProperty.getInputSchema()Sets the value ofCfnPrompt.ToolSpecificationProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inputSchema
@Stability(Stable) public CfnPrompt.ToolSpecificationProperty.Builder inputSchema(IResolvable inputSchema) Sets the value ofCfnPrompt.ToolSpecificationProperty.getInputSchema()- Parameters:
inputSchema- The input schema for the tool in JSON format. This parameter is required.- Returns:
this
-
inputSchema
@Stability(Stable) public CfnPrompt.ToolSpecificationProperty.Builder inputSchema(CfnPrompt.ToolInputSchemaProperty inputSchema) Sets the value ofCfnPrompt.ToolSpecificationProperty.getInputSchema()- Parameters:
inputSchema- The input schema for the tool in JSON format. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnPrompt.ToolSpecificationProperty.getName()- Parameters:
name- The name for the tool. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public CfnPrompt.ToolSpecificationProperty.Builder description(String description) Sets the value ofCfnPrompt.ToolSpecificationProperty.getDescription()- Parameters:
description- The description for the tool.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrompt.ToolSpecificationProperty>- Returns:
- a new instance of
CfnPrompt.ToolSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-