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