Interface McpServerUpdate


public interface McpServerUpdate

Update payload for an MCP Server. Specifies the expected version and the update actions to apply.


Example to create an instance using the builder pattern

     McpServerUpdate mcpServerUpdate = McpServerUpdate.builder()
             .version(0.3)
             .plusActions(actionsBuilder -> actionsBuilder)
             .build()
 
  • Method Details

    • getVersion

      @NotNull @NotNull Long getVersion()

      Expected version of the MCP Server on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error is returned.

      Returns:
      version
    • getActions

      @NotNull @Valid @NotNull @Valid List<McpServerUpdateAction> getActions()

      Update actions to be performed on the MCP Server.

      Returns:
      actions
    • setVersion

      void setVersion(Long version)

      Expected version of the MCP Server on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error is returned.

      Parameters:
      version - value to be set
    • setActions

      void setActions(McpServerUpdateAction... actions)

      Update actions to be performed on the MCP Server.

      Parameters:
      actions - values to be set
    • setActions

      void setActions(List<McpServerUpdateAction> actions)

      Update actions to be performed on the MCP Server.

      Parameters:
      actions - values to be set
    • of

      static McpServerUpdate of()
      factory method
      Returns:
      instance of McpServerUpdate
    • of

      static McpServerUpdate of(McpServerUpdate template)
      factory method to create a shallow copy McpServerUpdate
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      McpServerUpdate copyDeep()
    • deepCopy

      @Nullable static McpServerUpdate deepCopy(@Nullable McpServerUpdate template)
      factory method to create a deep copy of McpServerUpdate
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static McpServerUpdateBuilder builder()
      builder factory method for McpServerUpdate
      Returns:
      builder
    • builder

      static McpServerUpdateBuilder builder(McpServerUpdate template)
      create builder for McpServerUpdate instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMcpServerUpdate

      default <T> T withMcpServerUpdate(Function<McpServerUpdate,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static tools.jackson.core.type.TypeReference<McpServerUpdate> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference