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