Interface ToolSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ToolSpecification.Builder,
,ToolSpecification> SdkBuilder<ToolSpecification.Builder,
,ToolSpecification> SdkPojo
- Enclosing class:
ToolSpecification
@Mutable
@NotThreadSafe
public static interface ToolSpecification.Builder
extends SdkPojo, CopyableBuilder<ToolSpecification.Builder,ToolSpecification>
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The description of the tool.default ToolSpecification.Builder
inputSchema
(Consumer<ToolInputSchema.Builder> inputSchema) The input schema for the tool.inputSchema
(ToolInputSchema inputSchema) The input schema for the tool.The name of 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 Details
-
description
The description of the tool.
- Parameters:
description
- The description of the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputSchema
The input schema for the tool.
- Parameters:
inputSchema
- The input schema 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.
This is a convenience method that creates an instance of theToolInputSchema.Builder
avoiding the need to create one manually viaToolInputSchema.builder()
.When the
Consumer
completes,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:
-
name
The name of the tool.
- Parameters:
name
- The name of the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-