Interface McpServerSetNameAction
- All Superinterfaces:
McpServerUpdateAction
Sets the localized name of the MCP Server.
Example to create an instance using the builder pattern
McpServerSetNameAction mcpServerSetNameAction = McpServerSetNameAction.builder()
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for McpServerSetNameActionbuilder(McpServerSetNameAction template) create builder for McpServerSetNameAction instancecopyDeep()static McpServerSetNameActiondeepCopy(McpServerSetNameAction template) factory method to create a deep copy of McpServerSetNameAction@Valid LocalizedStringgetName()Value to set.static McpServerSetNameActionof()factory methodstatic McpServerSetNameActionof(McpServerSetNameAction template) factory method to create a shallow copy McpServerSetNameActionvoidsetName(LocalizedString name) Value to set.static tools.jackson.core.type.TypeReference<McpServerSetNameAction>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_NAME
discriminator value for McpServerSetNameAction- See Also:
-
-
Method Details
-
getName
Value to set. If omitted, the existing name is removed.
- Returns:
- name
-
setName
Value to set. If omitted, the existing name is removed.
- Parameters:
name- value to be set
-
of
factory method- Returns:
- instance of McpServerSetNameAction
-
of
factory method to create a shallow copy McpServerSetNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
McpServerSetNameAction copyDeep()- Specified by:
copyDeepin interfaceMcpServerUpdateAction
-
deepCopy
factory method to create a deep copy of McpServerSetNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for McpServerSetNameAction- Returns:
- builder
-
builder
create builder for McpServerSetNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMcpServerSetNameAction
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
-