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 Summary
Modifier and TypeMethodDescriptionstatic McpServerUpdateBuilderbuilder()builder factory method for McpServerUpdatestatic McpServerUpdateBuilderbuilder(McpServerUpdate template) create builder for McpServerUpdate instancecopyDeep()static McpServerUpdatedeepCopy(McpServerUpdate template) factory method to create a deep copy of McpServerUpdate@NotNull @Valid List<McpServerUpdateAction>Update actions to be performed on the MCP Server.@NotNull LongExpected version of the MCP Server on which the changes should be applied.static McpServerUpdateof()factory methodstatic McpServerUpdateof(McpServerUpdate template) factory method to create a shallow copy McpServerUpdatevoidsetActions(McpServerUpdateAction... actions) Update actions to be performed on the MCP Server.voidsetActions(List<McpServerUpdateAction> actions) Update actions to be performed on the MCP Server.voidsetVersion(Long version) Expected version of the MCP Server on which the changes should be applied.static tools.jackson.core.type.TypeReference<McpServerUpdate>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMcpServerUpdate(Function<McpServerUpdate, T> helper) accessor map function
-
Method Details
-
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
Update actions to be performed on the MCP Server.
- Returns:
- actions
-
setVersion
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
Update actions to be performed on the MCP Server.
- Parameters:
actions- values to be set
-
setActions
Update actions to be performed on the MCP Server.
- Parameters:
actions- values to be set
-
of
factory method- Returns:
- instance of McpServerUpdate
-
of
factory method to create a shallow copy McpServerUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
McpServerUpdate copyDeep() -
deepCopy
factory method to create a deep copy of McpServerUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for McpServerUpdate- Returns:
- builder
-
builder
create builder for McpServerUpdate instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMcpServerUpdate
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-