Class McpServerAddToolActionBuilder
java.lang.Object
com.commercetools.api.models.mcp_server.McpServerAddToolActionBuilder
- All Implemented Interfaces:
Builder<McpServerAddToolAction>
public class McpServerAddToolActionBuilder
extends Object
implements Builder<McpServerAddToolAction>
McpServerAddToolActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
McpServerAddToolAction mcpServerAddToolAction = McpServerAddToolAction.builder()
.tool(McpServerTool.ALL)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds McpServerAddToolAction with checking for non-null required valuesbuilds McpServerAddToolAction without checking for non-null required valuesgetTool()Name of the tool to add, such asread_productsorcreate_orders.of()factory method for an instance of McpServerAddToolActionBuilderof(McpServerAddToolAction template) create builder for McpServerAddToolAction instancetool(McpServerTool tool) Name of the tool to add, such asread_productsorcreate_orders.
-
Constructor Details
-
McpServerAddToolActionBuilder
public McpServerAddToolActionBuilder()
-
-
Method Details
-
tool
Name of the tool to add, such as
read_productsorcreate_orders.- Parameters:
tool- value to be set- Returns:
- Builder
-
getTool
Name of the tool to add, such as
read_productsorcreate_orders.- Returns:
- tool
-
build
builds McpServerAddToolAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<McpServerAddToolAction>- Returns:
- McpServerAddToolAction
-
buildUnchecked
builds McpServerAddToolAction without checking for non-null required values- Returns:
- McpServerAddToolAction
-
of
factory method for an instance of McpServerAddToolActionBuilder- Returns:
- builder
-
of
create builder for McpServerAddToolAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-