Interface DiscountGroupSetKeyAction
- All Superinterfaces:
DiscountGroupUpdateAction
Setting a key generates the DiscountGroupKeySet Message.
Example to create an instance using the builder pattern
DiscountGroupSetKeyAction discountGroupSetKeyAction = DiscountGroupSetKeyAction.builder()
.key("{key}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountGroupSetKeyActionbuilder
(DiscountGroupSetKeyAction template) create builder for DiscountGroupSetKeyAction instancecopyDeep()
static DiscountGroupSetKeyAction
deepCopy
(DiscountGroupSetKeyAction template) factory method to create a deep copy of DiscountGroupSetKeyAction@NotNull String
getKey()
New value to set.static DiscountGroupSetKeyAction
of()
factory methodstatic DiscountGroupSetKeyAction
of
(DiscountGroupSetKeyAction template) factory method to create a shallow copy DiscountGroupSetKeyActionvoid
New value to set.static com.fasterxml.jackson.core.type.TypeReference<DiscountGroupSetKeyAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.discount_group.DiscountGroupUpdateAction
getAction, withDiscountGroupUpdateAction
-
Field Details
-
SET_KEY
discriminator value for DiscountGroupSetKeyAction- See Also:
-
-
Method Details
-
getKey
New value to set.
- Returns:
- key
-
setKey
New value to set.
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of DiscountGroupSetKeyAction
-
of
factory method to create a shallow copy DiscountGroupSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
DiscountGroupSetKeyAction copyDeep()- Specified by:
copyDeep
in interfaceDiscountGroupUpdateAction
-
deepCopy
factory method to create a deep copy of DiscountGroupSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountGroupSetKeyAction- Returns:
- builder
-
builder
create builder for DiscountGroupSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountGroupSetKeyAction
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
-