Interface ProductSlugChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Change Slug update action.
Example to create an instance using the builder pattern
ProductSlugChangedMessagePayload productSlugChangedMessagePayload = ProductSlugChangedMessagePayload.builder()
.slug(slugBuilder -> slugBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSlugChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSlugChangedMessagePayloadbuilder
(ProductSlugChangedMessagePayload template) create builder for ProductSlugChangedMessagePayload instancedeepCopy
(ProductSlugChangedMessagePayload template) factory method to create a deep copy of ProductSlugChangedMessagePayload@Valid LocalizedString
The slug of the Product before the Change Slug update action.@NotNull @Valid LocalizedString
getSlug()
The slug of the Product after the Change Slug update action.of()
factory methodof
(ProductSlugChangedMessagePayload template) factory method to create a shallow copy ProductSlugChangedMessagePayloadvoid
setOldSlug
(LocalizedString oldSlug) The slug of the Product before the Change Slug update action.void
setSlug
(LocalizedString slug) The slug of the Product after the Change Slug update action.static com.fasterxml.jackson.core.type.TypeReference<ProductSlugChangedMessagePayload>
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
-
PRODUCT_SLUG_CHANGED
discriminator value for ProductSlugChangedMessagePayload- See Also:
-
-
Method Details
-
getSlug
The slug of the Product after the Change Slug update action.
- Returns:
- slug
-
getOldSlug
The slug of the Product before the Change Slug update action.
- Returns:
- oldSlug
-
setSlug
The slug of the Product after the Change Slug update action.
- Parameters:
slug
- value to be set
-
setOldSlug
The slug of the Product before the Change Slug update action.
- Parameters:
oldSlug
- value to be set
-
of
factory method- Returns:
- instance of ProductSlugChangedMessagePayload
-
of
factory method to create a shallow copy ProductSlugChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSlugChangedMessagePayload deepCopy(@Nullable ProductSlugChangedMessagePayload template) factory method to create a deep copy of ProductSlugChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSlugChangedMessagePayload- Returns:
- builder
-
builder
create builder for ProductSlugChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSlugChangedMessagePayload
default <T> T withProductSlugChangedMessagePayload(Function<ProductSlugChangedMessagePayload, 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<ProductSlugChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-