Class McpServerSetAuthenticationModeActionBuilder
java.lang.Object
com.commercetools.api.models.mcp_server.McpServerSetAuthenticationModeActionBuilder
- All Implemented Interfaces:
Builder<McpServerSetAuthenticationModeAction>
public class McpServerSetAuthenticationModeActionBuilder
extends Object
implements Builder<McpServerSetAuthenticationModeAction>
McpServerSetAuthenticationModeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
McpServerSetAuthenticationModeAction mcpServerSetAuthenticationModeAction = McpServerSetAuthenticationModeAction.builder()
.authenticationMode(McpServerAuthenticationMode.CLIENT_CREDENTIALS)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticationMode(McpServerAuthenticationMode authenticationMode) New authentication mode to set.build()builds McpServerSetAuthenticationModeAction with checking for non-null required valuesbuilds McpServerSetAuthenticationModeAction without checking for non-null required valuesNew authentication mode to set.of()factory method for an instance of McpServerSetAuthenticationModeActionBuilderof(McpServerSetAuthenticationModeAction template) create builder for McpServerSetAuthenticationModeAction instance
-
Constructor Details
-
McpServerSetAuthenticationModeActionBuilder
public McpServerSetAuthenticationModeActionBuilder()
-
-
Method Details
-
authenticationMode
public McpServerSetAuthenticationModeActionBuilder authenticationMode(McpServerAuthenticationMode authenticationMode) New authentication mode to set.
- Parameters:
authenticationMode- value to be set- Returns:
- Builder
-
getAuthenticationMode
New authentication mode to set.
- Returns:
- authenticationMode
-
build
builds McpServerSetAuthenticationModeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<McpServerSetAuthenticationModeAction>- Returns:
- McpServerSetAuthenticationModeAction
-
buildUnchecked
builds McpServerSetAuthenticationModeAction without checking for non-null required values- Returns:
- McpServerSetAuthenticationModeAction
-
of
factory method for an instance of McpServerSetAuthenticationModeActionBuilder- Returns:
- builder
-
of
public static McpServerSetAuthenticationModeActionBuilder of(McpServerSetAuthenticationModeAction template) create builder for McpServerSetAuthenticationModeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-