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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerSetAuthenticationModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerSetAuthenticationModeActionbuilder(CustomerSetAuthenticationModeAction template) create builder for CustomerSetAuthenticationModeAction instancecopyDeep()deepCopy(CustomerSetAuthenticationModeAction template) factory method to create a deep copy of CustomerSetAuthenticationModeAction@NotNull AuthenticationModeValue to set.Required whenauthModeisPassword.of()factory methodof(CustomerSetAuthenticationModeAction template) factory method to create a shallow copy CustomerSetAuthenticationModeActionvoidsetAuthMode(AuthenticationMode authMode) Value to set.voidsetPassword(String password) Required whenauthModeisPassword.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetAuthenticationModeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateActionMethods 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
authModefromPasswordtoExternalAuthdeletes the Customer's password.- Returns:
- authMode
-
getPassword
String getPassword()Required when
authModeisPassword.- Returns:
- password
-
setAuthMode
Value to set. Changing a Customer's
authModefromPasswordtoExternalAuthdeletes the Customer's password.- Parameters:
authMode- value to be set
-
setPassword
Required when
authModeisPassword.- 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
-
copyDeep
CustomerSetAuthenticationModeAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
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
-