Interface DiscountCodeSetKeyAction
- All Superinterfaces:
DiscountCodeUpdateAction,ResourceUpdateAction<DiscountCodeUpdateAction>
This action generates a DiscountCodeKeySet Message.
Example to create an instance using the builder pattern
DiscountCodeSetKeyAction discountCodeSetKeyAction = DiscountCodeSetKeyAction.builder()
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for DiscountCodeSetKeyActionbuilder(DiscountCodeSetKeyAction template) create builder for DiscountCodeSetKeyAction instancecopyDeep()static DiscountCodeSetKeyActiondeepCopy(DiscountCodeSetKeyAction template) factory method to create a deep copy of DiscountCodeSetKeyActiongetKey()Unique value to set.static DiscountCodeSetKeyActionof()factory methodstatic DiscountCodeSetKeyActionof(DiscountCodeSetKeyAction template) factory method to create a shallow copy DiscountCodeSetKeyActionvoidUnique value to set.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeSetKeyAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.discount_code.DiscountCodeUpdateAction
getAction, withDiscountCodeUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_KEY
discriminator value for DiscountCodeSetKeyAction- See Also:
-
-
Method Details
-
getKey
String getKey()Unique value to set. If empty, any existing value will be removed.
- Returns:
- key
-
setKey
Unique value to set. If empty, any existing value will be removed.
- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of DiscountCodeSetKeyAction
-
of
factory method to create a shallow copy DiscountCodeSetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
DiscountCodeSetKeyAction copyDeep()- Specified by:
copyDeepin interfaceDiscountCodeUpdateAction
-
deepCopy
factory method to create a deep copy of DiscountCodeSetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeSetKeyAction- Returns:
- builder
-
builder
create builder for DiscountCodeSetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeSetKeyAction
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-