Interface McpServerSetDescriptionAction
- All Superinterfaces:
McpServerUpdateAction
Sets the localized description of the MCP Server.
Example to create an instance using the builder pattern
McpServerSetDescriptionAction mcpServerSetDescriptionAction = McpServerSetDescriptionAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for McpServerSetDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for McpServerSetDescriptionActionbuilder(McpServerSetDescriptionAction template) create builder for McpServerSetDescriptionAction instancecopyDeep()deepCopy(McpServerSetDescriptionAction template) factory method to create a deep copy of McpServerSetDescriptionAction@Valid LocalizedStringValue to set.of()factory methodof(McpServerSetDescriptionAction template) factory method to create a shallow copy McpServerSetDescriptionActionvoidsetDescription(LocalizedString description) Value to set.static tools.jackson.core.type.TypeReference<McpServerSetDescriptionAction>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_DESCRIPTION
discriminator value for McpServerSetDescriptionAction- See Also:
-
-
Method Details
-
getDescription
Value to set. If omitted, the existing description is removed.
- Returns:
- description
-
setDescription
Value to set. If omitted, the existing description is removed.
- Parameters:
description- value to be set
-
of
factory method- Returns:
- instance of McpServerSetDescriptionAction
-
of
factory method to create a shallow copy McpServerSetDescriptionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
McpServerSetDescriptionAction copyDeep()- Specified by:
copyDeepin interfaceMcpServerUpdateAction
-
deepCopy
@Nullable static McpServerSetDescriptionAction deepCopy(@Nullable McpServerSetDescriptionAction template) factory method to create a deep copy of McpServerSetDescriptionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for McpServerSetDescriptionAction- Returns:
- builder
-
builder
create builder for McpServerSetDescriptionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMcpServerSetDescriptionAction
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
-