Interface VariantKeySetMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Set Key update action.
Example to create an instance using the builder pattern
VariantKeySetMessagePayload variantKeySetMessagePayload = VariantKeySetMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantKeySetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantKeySetMessagePayloadbuilder(VariantKeySetMessagePayload template) create builder for VariantKeySetMessagePayload instancecopyDeep()static VariantKeySetMessagePayloaddeepCopy(VariantKeySetMessagePayload template) factory method to create a deep copy of VariantKeySetMessagePayloadgetKey()The key that was set on the Variant.The previous key of the Variant.static VariantKeySetMessagePayloadof()factory methodstatic VariantKeySetMessagePayloadof(VariantKeySetMessagePayload template) factory method to create a shallow copy VariantKeySetMessagePayloadvoidThe key that was set on the Variant.voidThe previous key of the Variant.static tools.jackson.core.type.TypeReference<VariantKeySetMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
VARIANT_KEY_SET
discriminator value for VariantKeySetMessagePayload- See Also:
-
-
Method Details
-
getKey
String getKey()The key that was set on the Variant.
- Returns:
- key
-
getOldKey
String getOldKey()The previous key of the Variant.
- Returns:
- oldKey
-
setKey
The key that was set on the Variant.
- Parameters:
key- value to be set
-
setOldKey
The previous key of the Variant.
- Parameters:
oldKey- value to be set
-
of
factory method- Returns:
- instance of VariantKeySetMessagePayload
-
of
factory method to create a shallow copy VariantKeySetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantKeySetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static VariantKeySetMessagePayload deepCopy(@Nullable VariantKeySetMessagePayload template) factory method to create a deep copy of VariantKeySetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantKeySetMessagePayload- Returns:
- builder
-
builder
create builder for VariantKeySetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantKeySetMessagePayload
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
-