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

     McpServerSetToolsAction mcpServerSetToolsAction = McpServerSetToolsAction.builder()
             .plusTools(toolsBuilder -> toolsBuilder)
             .build()
 
  • Constructor Details

    • McpServerSetToolsActionBuilder

      public McpServerSetToolsActionBuilder()
  • Method Details

    • tools

      New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

      Parameters:
      tools - value to be set
      Returns:
      Builder
    • tools

      New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

      Parameters:
      tools - value to be set
      Returns:
      Builder
    • plusTools

      public McpServerSetToolsActionBuilder plusTools(McpServerTool... tools)

      New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

      Parameters:
      tools - value to be set
      Returns:
      Builder
    • getTools

      public List<McpServerTool> getTools()

      New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

      Returns:
      tools
    • build

      public McpServerSetToolsAction build()
      builds McpServerSetToolsAction with checking for non-null required values
      Specified by:
      build in interface Builder<McpServerSetToolsAction>
      Returns:
      McpServerSetToolsAction
    • buildUnchecked

      public McpServerSetToolsAction buildUnchecked()
      builds McpServerSetToolsAction without checking for non-null required values
      Returns:
      McpServerSetToolsAction
    • of

      public static McpServerSetToolsActionBuilder 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