Interface CustomerSetKeyAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
CustomerSetKeyAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerSetKeyAction customerSetKeyAction = CustomerSetKeyAction.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerSetKeyActionBuilder
builder()
builder factory method for CustomerSetKeyActionstatic CustomerSetKeyActionBuilder
builder
(CustomerSetKeyAction template) create builder for CustomerSetKeyAction instancestatic CustomerSetKeyAction
deepCopy
(CustomerSetKeyAction template) factory method to create a deep copy of CustomerSetKeyActiongetKey()
Ifkey
is absent ornull
, the existing key, if any, will be removed.static CustomerSetKeyAction
of()
factory methodstatic CustomerSetKeyAction
of
(CustomerSetKeyAction template) factory method to create a shallow copy CustomerSetKeyActionstatic CustomerSetKeyAction
ofUnset()
void
Ifkey
is absent ornull
, the existing key, if any, will be removed.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetKeyAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerSetKeyAction
(Function<CustomerSetKeyAction, T> helper) 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_KEY
discriminator value for CustomerSetKeyAction- See Also:
-
-
Method Details
-
getKey
String getKey()If
key
is absent ornull
, the existing key, if any, will be removed.- Returns:
- key
-
setKey
If
key
is absent ornull
, the existing key, if any, will be removed.- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of CustomerSetKeyAction
-
of
factory method to create a shallow copy CustomerSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetKeyAction- Returns:
- builder
-
builder
create builder for CustomerSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetKeyAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-