Class CustomerSetAuthenticationModeActionBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerSetAuthenticationModeActionBuilder
- All Implemented Interfaces:
Builder<CustomerSetAuthenticationModeAction>
public class CustomerSetAuthenticationModeActionBuilder
extends Object
implements Builder<CustomerSetAuthenticationModeAction>
CustomerSetAuthenticationModeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerSetAuthenticationModeAction customerSetAuthenticationModeAction = CustomerSetAuthenticationModeAction.builder()
.authMode(AuthenticationMode.PASSWORD)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthMode
(AuthenticationMode authMode) Value to set.build()
builds CustomerSetAuthenticationModeAction with checking for non-null required valuesbuilds CustomerSetAuthenticationModeAction without checking for non-null required valuesValue to set.Required whenauthMode
isPassword
.of()
factory method for an instance of CustomerSetAuthenticationModeActionBuilderof
(CustomerSetAuthenticationModeAction template) create builder for CustomerSetAuthenticationModeAction instanceRequired whenauthMode
isPassword
.
-
Constructor Details
-
CustomerSetAuthenticationModeActionBuilder
public CustomerSetAuthenticationModeActionBuilder()
-
-
Method Details
-
authMode
Value to set. Changing a Customer's
authMode
fromPassword
toExternalAuth
deletes the Customer's password.- Parameters:
authMode
- value to be set- Returns:
- Builder
-
password
Required when
authMode
isPassword
.- Parameters:
password
- value to be set- Returns:
- Builder
-
getAuthMode
Value to set. Changing a Customer's
authMode
fromPassword
toExternalAuth
deletes the Customer's password.- Returns:
- authMode
-
getPassword
Required when
authMode
isPassword
.- Returns:
- password
-
build
builds CustomerSetAuthenticationModeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerSetAuthenticationModeAction>
- Returns:
- CustomerSetAuthenticationModeAction
-
buildUnchecked
builds CustomerSetAuthenticationModeAction without checking for non-null required values- Returns:
- CustomerSetAuthenticationModeAction
-
of
factory method for an instance of CustomerSetAuthenticationModeActionBuilder- Returns:
- builder
-
of
public static CustomerSetAuthenticationModeActionBuilder of(CustomerSetAuthenticationModeAction template) create builder for CustomerSetAuthenticationModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-