Interface ToolSpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ToolSpecification.Builder,,ToolSpecification> SdkBuilder<ToolSpecification.Builder,,ToolSpecification> SdkPojo
- Enclosing class:
ToolSpecification
public static interface ToolSpecification.Builder
extends SdkPojo, CopyableBuilder<ToolSpecification.Builder,ToolSpecification>
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) The description for the tool.default ToolSpecification.BuilderinputSchema(Consumer<ToolInputSchema.Builder> inputSchema) The input schema for the tool in JSON format.inputSchema(ToolInputSchema inputSchema) The input schema for the tool in JSON format.The name for the tool.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name for the tool.
- Parameters:
name- The name for the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description for the tool.
- Parameters:
description- The description for the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputSchema
The input schema for the tool in JSON format.
- Parameters:
inputSchema- The input schema for the tool in JSON format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputSchema
The input schema for the tool in JSON format.
This is a convenience method that creates an instance of theToolInputSchema.Builderavoiding the need to create one manually viaToolInputSchema.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinputSchema(ToolInputSchema).- Parameters:
inputSchema- a consumer that will call methods onToolInputSchema.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-