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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ToolSpecification.Builderdescription(String description)The description for the tool.default ToolSpecification.BuilderinputSchema(Consumer<ToolInputSchema.Builder> inputSchema)The input schema for the tool in JSON format.ToolSpecification.BuilderinputSchema(ToolInputSchema inputSchema)The input schema for the tool in JSON format.ToolSpecification.Buildername(String name)The name for the tool.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
ToolSpecification.Builder name(String 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
ToolSpecification.Builder description(String 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
ToolSpecification.Builder inputSchema(ToolInputSchema 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
default ToolSpecification.Builder inputSchema(Consumer<ToolInputSchema.Builder> 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:
inputSchema(ToolInputSchema)
-
-