Interface McpServerSetAuthenticationModeAction
- All Superinterfaces:
McpServerUpdateAction
Sets the authentication mode of the MCP Server. This action has no effect if the MCP Server already uses the given authentication mode, and in that case the version of the MCP Server stays the same.
Example to create an instance using the builder pattern
McpServerSetAuthenticationModeAction mcpServerSetAuthenticationModeAction = McpServerSetAuthenticationModeAction.builder()
.authenticationMode(McpServerAuthenticationMode.CLIENT_CREDENTIALS)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for McpServerSetAuthenticationModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for McpServerSetAuthenticationModeActionbuilder(McpServerSetAuthenticationModeAction template) create builder for McpServerSetAuthenticationModeAction instancecopyDeep()deepCopy(McpServerSetAuthenticationModeAction template) factory method to create a deep copy of McpServerSetAuthenticationModeAction@NotNull McpServerAuthenticationModeNew authentication mode to set.of()factory methodof(McpServerSetAuthenticationModeAction template) factory method to create a shallow copy McpServerSetAuthenticationModeActionvoidsetAuthenticationMode(McpServerAuthenticationMode authenticationMode) New authentication mode to set.static tools.jackson.core.type.TypeReference<McpServerSetAuthenticationModeAction>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_AUTHENTICATION_MODE
discriminator value for McpServerSetAuthenticationModeAction- See Also:
-
-
Method Details
-
getAuthenticationMode
New authentication mode to set.
- Returns:
- authenticationMode
-
setAuthenticationMode
New authentication mode to set.
- Parameters:
authenticationMode- value to be set
-
of
factory method- Returns:
- instance of McpServerSetAuthenticationModeAction
-
of
factory method to create a shallow copy McpServerSetAuthenticationModeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
McpServerSetAuthenticationModeAction copyDeep()- Specified by:
copyDeepin interfaceMcpServerUpdateAction
-
deepCopy
@Nullable static McpServerSetAuthenticationModeAction deepCopy(@Nullable McpServerSetAuthenticationModeAction template) factory method to create a deep copy of McpServerSetAuthenticationModeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for McpServerSetAuthenticationModeAction- Returns:
- builder
-
builder
static McpServerSetAuthenticationModeActionBuilder builder(McpServerSetAuthenticationModeAction template) create builder for McpServerSetAuthenticationModeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMcpServerSetAuthenticationModeAction
default <T> T withMcpServerSetAuthenticationModeAction(Function<McpServerSetAuthenticationModeAction, 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
-