Interface McpServerAdditionalData.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<McpServerAdditionalData.Builder,,McpServerAdditionalData> SdkBuilder<McpServerAdditionalData.Builder,,McpServerAdditionalData> SdkPojo
- Enclosing class:
McpServerAdditionalData
@Mutable
@NotThreadSafe
public static interface McpServerAdditionalData.Builder
extends SdkPojo, CopyableBuilder<McpServerAdditionalData.Builder,McpServerAdditionalData>
-
Method Summary
Modifier and TypeMethodDescriptiondefault McpServerAdditionalData.Buildertools(Consumer<McpToolsDescriptor.Builder> tools) The MCP tools descriptor that defines the tools exposed by the MCP server.tools(McpToolsDescriptor tools) The MCP tools descriptor that defines the tools exposed by the MCP server.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, sdkFieldNameToField, sdkFields
-
Method Details
-
tools
The MCP tools descriptor that defines the tools exposed by the MCP server.
- Parameters:
tools- The MCP tools descriptor that defines the tools exposed by the MCP server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tools
The MCP tools descriptor that defines the tools exposed by the MCP server.
This is a convenience method that creates an instance of theMcpToolsDescriptor.Builderavoiding the need to create one manually viaMcpToolsDescriptor.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totools(McpToolsDescriptor).- Parameters:
tools- a consumer that will call methods onMcpToolsDescriptor.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-