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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerSetKeyActionBuilderbuilder()builder factory method for CustomerSetKeyActionstatic CustomerSetKeyActionBuilderbuilder(CustomerSetKeyAction template) create builder for CustomerSetKeyAction instancecopyDeep()static CustomerSetKeyActiondeepCopy(CustomerSetKeyAction template) factory method to create a deep copy of CustomerSetKeyActiongetKey()Ifkeyis absent ornull, the existing key, if any, will be removed.static CustomerSetKeyActionof()factory methodstatic CustomerSetKeyActionof(CustomerSetKeyAction template) factory method to create a shallow copy CustomerSetKeyActionstatic CustomerSetKeyActionofUnset()voidIfkeyis 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> TwithCustomerSetKeyAction(Function<CustomerSetKeyAction, T> helper) accessor 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_KEY
discriminator value for CustomerSetKeyAction- See Also:
-
-
Method Details
-
getKey
String getKey()If
keyis absent ornull, the existing key, if any, will be removed.- Returns:
- key
-
setKey
If
keyis 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
-
copyDeep
CustomerSetKeyAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
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
-