Interface McpServerAddToolCustomizationAction
- All Superinterfaces:
McpServerUpdateAction
Adds a single tool customization to the MCP Server. Returns an InvalidOperation error if a customization for the same tool already exists.
Example to create an instance using the builder pattern
McpServerAddToolCustomizationAction mcpServerAddToolCustomizationAction = McpServerAddToolCustomizationAction.builder()
.toolCustomization(toolCustomizationBuilder -> toolCustomizationBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for McpServerAddToolCustomizationAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for McpServerAddToolCustomizationActionbuilder(McpServerAddToolCustomizationAction template) create builder for McpServerAddToolCustomizationAction instancecopyDeep()deepCopy(McpServerAddToolCustomizationAction template) factory method to create a deep copy of McpServerAddToolCustomizationAction@NotNull @Valid ToolCustomizationTool customization to add.of()factory methodof(McpServerAddToolCustomizationAction template) factory method to create a shallow copy McpServerAddToolCustomizationActionvoidsetToolCustomization(ToolCustomization toolCustomization) Tool customization to add.static tools.jackson.core.type.TypeReference<McpServerAddToolCustomizationAction>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
-
ADD_TOOL_CUSTOMIZATION
discriminator value for McpServerAddToolCustomizationAction- See Also:
-
-
Method Details
-
getToolCustomization
Tool customization to add.
- Returns:
- toolCustomization
-
setToolCustomization
Tool customization to add.
- Parameters:
toolCustomization- value to be set
-
of
factory method- Returns:
- instance of McpServerAddToolCustomizationAction
-
of
factory method to create a shallow copy McpServerAddToolCustomizationAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
McpServerAddToolCustomizationAction copyDeep()- Specified by:
copyDeepin interfaceMcpServerUpdateAction
-
deepCopy
@Nullable static McpServerAddToolCustomizationAction deepCopy(@Nullable McpServerAddToolCustomizationAction template) factory method to create a deep copy of McpServerAddToolCustomizationAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for McpServerAddToolCustomizationAction- Returns:
- builder
-
builder
static McpServerAddToolCustomizationActionBuilder builder(McpServerAddToolCustomizationAction template) create builder for McpServerAddToolCustomizationAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMcpServerAddToolCustomizationAction
default <T> T withMcpServerAddToolCustomizationAction(Function<McpServerAddToolCustomizationAction, 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
-