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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSlugChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSlugChangedMessagePayloadbuilder(ProductSlugChangedMessagePayload template) create builder for ProductSlugChangedMessagePayload instancecopyDeep()deepCopy(ProductSlugChangedMessagePayload template) factory method to create a deep copy of ProductSlugChangedMessagePayload@Valid LocalizedStringThe slug of the Product before the Change Slug update action.@NotNull @Valid LocalizedStringgetSlug()The slug of the Product after the Change Slug update action.of()factory methodof(ProductSlugChangedMessagePayload template) factory method to create a shallow copy ProductSlugChangedMessagePayloadvoidsetOldSlug(LocalizedString oldSlug) The slug of the Product before the Change Slug update action.voidsetSlug(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> 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
-
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
-
copyDeep
ProductSlugChangedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
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
-