Interface McpServerSetToolCustomizationsAction
- All Superinterfaces:
McpServerUpdateAction
Replaces the entire list of tool customizations on the MCP Server.
Example to create an instance using the builder pattern
McpServerSetToolCustomizationsAction mcpServerSetToolCustomizationsAction = McpServerSetToolCustomizationsAction.builder()
.plusToolCustomizations(toolCustomizationsBuilder -> toolCustomizationsBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for McpServerSetToolCustomizationsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for McpServerSetToolCustomizationsActionbuilder(McpServerSetToolCustomizationsAction template) create builder for McpServerSetToolCustomizationsAction instancecopyDeep()deepCopy(McpServerSetToolCustomizationsAction template) factory method to create a deep copy of McpServerSetToolCustomizationsAction@NotNull @Valid List<ToolCustomization>New list of tool customizations.of()factory methodof(McpServerSetToolCustomizationsAction template) factory method to create a shallow copy McpServerSetToolCustomizationsActionvoidsetToolCustomizations(ToolCustomization... toolCustomizations) New list of tool customizations.voidsetToolCustomizations(List<ToolCustomization> toolCustomizations) New list of tool customizations.static tools.jackson.core.type.TypeReference<McpServerSetToolCustomizationsAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.mcp_server.McpServerUpdateAction
getAction, withMcpServerUpdateAction
-
Field Details
-
SET_TOOL_CUSTOMIZATIONS
discriminator value for McpServerSetToolCustomizationsAction- See Also:
-
-
Method Details
-
getToolCustomizations
New list of tool customizations. Replaces the existing list entirely.
- Returns:
- toolCustomizations
-
setToolCustomizations
New list of tool customizations. Replaces the existing list entirely.
- Parameters:
toolCustomizations- values to be set
-
setToolCustomizations
New list of tool customizations. Replaces the existing list entirely.
- Parameters:
toolCustomizations- values to be set
-
of
factory method- Returns:
- instance of McpServerSetToolCustomizationsAction
-
of
factory method to create a shallow copy McpServerSetToolCustomizationsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
McpServerSetToolCustomizationsAction copyDeep()- Specified by:
copyDeepin interfaceMcpServerUpdateAction
-
deepCopy
@Nullable static McpServerSetToolCustomizationsAction deepCopy(@Nullable McpServerSetToolCustomizationsAction template) factory method to create a deep copy of McpServerSetToolCustomizationsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for McpServerSetToolCustomizationsAction- Returns:
- builder
-
builder
static McpServerSetToolCustomizationsActionBuilder builder(McpServerSetToolCustomizationsAction template) create builder for McpServerSetToolCustomizationsAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMcpServerSetToolCustomizationsAction
default <T> T withMcpServerSetToolCustomizationsAction(Function<McpServerSetToolCustomizationsAction, T> helper) 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
-