Class McpServerSetToolsActionBuilder
java.lang.Object
com.commercetools.api.models.mcp_server.McpServerSetToolsActionBuilder
- All Implemented Interfaces:
Builder<McpServerSetToolsAction>
public class McpServerSetToolsActionBuilder
extends Object
implements Builder<McpServerSetToolsAction>
McpServerSetToolsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
McpServerSetToolsAction mcpServerSetToolsAction = McpServerSetToolsAction.builder()
.plusTools(toolsBuilder -> toolsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds McpServerSetToolsAction with checking for non-null required valuesbuilds McpServerSetToolsAction without checking for non-null required valuesgetTools()New list of tools to set.of()factory method for an instance of McpServerSetToolsActionBuilderof(McpServerSetToolsAction template) create builder for McpServerSetToolsAction instanceplusTools(McpServerTool... tools) New list of tools to set.tools(McpServerTool... tools) New list of tools to set.tools(List<McpServerTool> tools) New list of tools to set.
-
Constructor Details
-
McpServerSetToolsActionBuilder
public McpServerSetToolsActionBuilder()
-
-
Method Details
-
tools
New list of tools to set. Replaces the existing
toolslist entirely. Useallto enable all available tools, or specify individual tool names such asread_productsorcreate_orders.- Parameters:
tools- value to be set- Returns:
- Builder
-
tools
New list of tools to set. Replaces the existing
toolslist entirely. Useallto enable all available tools, or specify individual tool names such asread_productsorcreate_orders.- Parameters:
tools- value to be set- Returns:
- Builder
-
plusTools
New list of tools to set. Replaces the existing
toolslist entirely. Useallto enable all available tools, or specify individual tool names such asread_productsorcreate_orders.- Parameters:
tools- value to be set- Returns:
- Builder
-
getTools
New list of tools to set. Replaces the existing
toolslist entirely. Useallto enable all available tools, or specify individual tool names such asread_productsorcreate_orders.- Returns:
- tools
-
build
builds McpServerSetToolsAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<McpServerSetToolsAction>- Returns:
- McpServerSetToolsAction
-
buildUnchecked
builds McpServerSetToolsAction without checking for non-null required values- Returns:
- McpServerSetToolsAction
-
of
factory method for an instance of McpServerSetToolsActionBuilder- Returns:
- builder
-
of
create builder for McpServerSetToolsAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-