Interface CategoryChangeSlugAction
- All Superinterfaces:
CategoryUpdateAction
,ResourceUpdateAction<CategoryUpdateAction>
Changing the slug produces the CategorySlugChanged Message.
Example to create an instance using the builder pattern
CategoryChangeSlugAction categoryChangeSlugAction = CategoryChangeSlugAction.builder()
.slug(slugBuilder -> slugBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CategoryChangeSlugAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CategoryChangeSlugActionbuilder
(CategoryChangeSlugAction template) create builder for CategoryChangeSlugAction instancestatic CategoryChangeSlugAction
deepCopy
(CategoryChangeSlugAction template) factory method to create a deep copy of CategoryChangeSlugAction@NotNull @Valid LocalizedString
getSlug()
New value to set.static CategoryChangeSlugAction
of()
factory methodstatic CategoryChangeSlugAction
of
(CategoryChangeSlugAction template) factory method to create a shallow copy CategoryChangeSlugActionvoid
setSlug
(LocalizedString slug) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CategoryChangeSlugAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.category.CategoryUpdateAction
getAction, withCategoryUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_SLUG
discriminator value for CategoryChangeSlugAction- See Also:
-
-
Method Details
-
getSlug
New value to set. Must not be empty. A Category can have the same slug for different Locales, but it must be unique across the Project. Valid slugs must match the pattern
^[A-Za-z0-9_-]{2,256}+$
.- Returns:
- slug
-
setSlug
New value to set. Must not be empty. A Category can have the same slug for different Locales, but it must be unique across the Project. Valid slugs must match the pattern
^[A-Za-z0-9_-]{2,256}+$
.- Parameters:
slug
- value to be set
-
of
factory method- Returns:
- instance of CategoryChangeSlugAction
-
of
factory method to create a shallow copy CategoryChangeSlugAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CategoryChangeSlugAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategoryChangeSlugAction- Returns:
- builder
-
builder
create builder for CategoryChangeSlugAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCategoryChangeSlugAction
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
-