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
Constructors -
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 whenauthModeisPassword.of()factory method for an instance of CustomerSetAuthenticationModeActionBuilderof(CustomerSetAuthenticationModeAction template) create builder for CustomerSetAuthenticationModeAction instanceRequired whenauthModeisPassword.
-
Constructor Details
-
CustomerSetAuthenticationModeActionBuilder
public CustomerSetAuthenticationModeActionBuilder()
-
-
Method Details
-
authMode
Value to set. Changing a Customer's
authModefromPasswordtoExternalAuthdeletes the Customer's password.- Parameters:
authMode- value to be set- Returns:
- Builder
-
password
Required when
authModeisPassword.- Parameters:
password- value to be set- Returns:
- Builder
-
getAuthMode
Value to set. Changing a Customer's
authModefromPasswordtoExternalAuthdeletes the Customer's password.- Returns:
- authMode
-
getPassword
Required when
authModeisPassword.- Returns:
- password
-
build
builds CustomerSetAuthenticationModeAction with checking for non-null required values- Specified by:
buildin 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
-