Interface CustomerSetAuthenticationModeAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
CustomerSetAuthenticationModeAction
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()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerSetAuthenticationModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerSetAuthenticationModeActionbuilder
(CustomerSetAuthenticationModeAction template) create builder for CustomerSetAuthenticationModeAction instancedeepCopy
(CustomerSetAuthenticationModeAction template) factory method to create a deep copy of CustomerSetAuthenticationModeAction@NotNull AuthenticationMode
Value to set.Required whenauthMode
isPassword
.of()
factory methodof
(CustomerSetAuthenticationModeAction template) factory method to create a shallow copy CustomerSetAuthenticationModeActionvoid
setAuthMode
(AuthenticationMode authMode) Value to set.void
setPassword
(String password) Required whenauthMode
isPassword
.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetAuthenticationModeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_AUTHENTICATION_MODE
discriminator value for CustomerSetAuthenticationModeAction- See Also:
-
-
Method Details
-
getAuthMode
Value to set. Changing a Customer's
authMode
fromPassword
toExternalAuth
deletes the Customer's password.- Returns:
- authMode
-
getPassword
String getPassword()Required when
authMode
isPassword
.- Returns:
- password
-
setAuthMode
Value to set. Changing a Customer's
authMode
fromPassword
toExternalAuth
deletes the Customer's password.- Parameters:
authMode
- value to be set
-
setPassword
Required when
authMode
isPassword
.- Parameters:
password
- value to be set
-
of
factory method- Returns:
- instance of CustomerSetAuthenticationModeAction
-
of
factory method to create a shallow copy CustomerSetAuthenticationModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerSetAuthenticationModeAction deepCopy(@Nullable CustomerSetAuthenticationModeAction template) factory method to create a deep copy of CustomerSetAuthenticationModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetAuthenticationModeAction- Returns:
- builder
-
builder
static CustomerSetAuthenticationModeActionBuilder builder(CustomerSetAuthenticationModeAction template) create builder for CustomerSetAuthenticationModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetAuthenticationModeAction
default <T> T withCustomerSetAuthenticationModeAction(Function<CustomerSetAuthenticationModeAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CustomerSetAuthenticationModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-