Interface McpServerSetNameAction

All Superinterfaces:
McpServerUpdateAction

public interface McpServerSetNameAction extends McpServerUpdateAction

Sets the localized name of the MCP Server.


Example to create an instance using the builder pattern

     McpServerSetNameAction mcpServerSetNameAction = McpServerSetNameAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getName

      @Valid @Valid LocalizedString getName()

      Value to set. If omitted, the existing name is removed.

      Returns:
      name
    • setName

      void setName(LocalizedString name)

      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

      Specified by:
      copyDeep in interface McpServerUpdateAction
    • deepCopy

      @Nullable static McpServerSetNameAction deepCopy(@Nullable McpServerSetNameAction template)
      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

      default <T> T withMcpServerSetNameAction(Function<McpServerSetNameAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static tools.jackson.core.type.TypeReference<McpServerSetNameAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference