Interface DiscountGroupKeySetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Key update action.
Example to create an instance using the builder pattern
DiscountGroupKeySetMessagePayload discountGroupKeySetMessagePayload = DiscountGroupKeySetMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountGroupKeySetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountGroupKeySetMessagePayloadbuilder
(DiscountGroupKeySetMessagePayload template) create builder for DiscountGroupKeySetMessagePayload instancecopyDeep()
deepCopy
(DiscountGroupKeySetMessagePayload template) factory method to create a deep copy of DiscountGroupKeySetMessagePayloadgetKey()
of()
factory methodof
(DiscountGroupKeySetMessagePayload template) factory method to create a shallow copy DiscountGroupKeySetMessagePayloadvoid
void
static com.fasterxml.jackson.core.type.TypeReference<DiscountGroupKeySetMessagePayload>
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_GROUP_KEY_SET
discriminator value for DiscountGroupKeySetMessagePayload- See Also:
-
-
Method Details
-
getKey
String getKey()key
value of the DiscountGroup after the Set Key update action.- Returns:
- key
-
getOldKey
String getOldKey()key
value of the DiscountGroup before the Set Key update action.- Returns:
- oldKey
-
setKey
key
value of the DiscountGroup after the Set Key update action.- Parameters:
key
- value to be set
-
setOldKey
key
value of the DiscountGroup before the Set Key update action.- Parameters:
oldKey
- value to be set
-
of
factory method- Returns:
- instance of DiscountGroupKeySetMessagePayload
-
of
factory method to create a shallow copy DiscountGroupKeySetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
DiscountGroupKeySetMessagePayload copyDeep()- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static DiscountGroupKeySetMessagePayload deepCopy(@Nullable DiscountGroupKeySetMessagePayload template) factory method to create a deep copy of DiscountGroupKeySetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountGroupKeySetMessagePayload- Returns:
- builder
-
builder
create builder for DiscountGroupKeySetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountGroupKeySetMessagePayload
default <T> T withDiscountGroupKeySetMessagePayload(Function<DiscountGroupKeySetMessagePayload, 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<DiscountGroupKeySetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-