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