Interface DiscountCodeKeySetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Key update action.
Example to create an instance using the builder pattern
DiscountCodeKeySetMessagePayload discountCodeKeySetMessagePayload = DiscountCodeKeySetMessagePayload.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountCodeKeySetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountCodeKeySetMessagePayloadbuilder
(DiscountCodeKeySetMessagePayload template) create builder for DiscountCodeKeySetMessagePayload instancedeepCopy
(DiscountCodeKeySetMessagePayload template) factory method to create a deep copy of DiscountCodeKeySetMessagePayloadgetKey()
key
value of the Discount Code after the Set Key update action.key
value of the Discount Code before the Set Key update action.of()
factory methodof
(DiscountCodeKeySetMessagePayload template) factory method to create a shallow copy DiscountCodeKeySetMessagePayloadvoid
key
value of the Discount Code after the Set Key update action.void
key
value of the Discount Code before the Set Key update action.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeKeySetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
DISCOUNT_CODE_KEY_SET
discriminator value for DiscountCodeKeySetMessagePayload- See Also:
-
-
Method Details
-
getKey
String getKey()key
value of the Discount Code after the Set Key update action.- Returns:
- key
-
getOldKey
String getOldKey()key
value of the Discount Code before the Set Key update action.- Returns:
- oldKey
-
setKey
key
value of the Discount Code after the Set Key update action.- Parameters:
key
- value to be set
-
setOldKey
key
value of the Discount Code before the Set Key update action.- Parameters:
oldKey
- value to be set
-
of
factory method- Returns:
- instance of DiscountCodeKeySetMessagePayload
-
of
factory method to create a shallow copy DiscountCodeKeySetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DiscountCodeKeySetMessagePayload deepCopy(@Nullable DiscountCodeKeySetMessagePayload template) factory method to create a deep copy of DiscountCodeKeySetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeKeySetMessagePayload- Returns:
- builder
-
builder
create builder for DiscountCodeKeySetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeKeySetMessagePayload
default <T> T withDiscountCodeKeySetMessagePayload(Function<DiscountCodeKeySetMessagePayload, 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<DiscountCodeKeySetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-