Interface ProductChangeSlugAction
- All Superinterfaces:
ProductUpdateAction,ResourceUpdateAction<ProductUpdateAction>
Produces the ProductSlugChanged Message.
Example to create an instance using the builder pattern
ProductChangeSlugAction productChangeSlugAction = ProductChangeSlugAction.builder()
.slug(slugBuilder -> slugBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductChangeSlugAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductChangeSlugActionbuilder(ProductChangeSlugAction template) create builder for ProductChangeSlugAction instancecopyDeep()static ProductChangeSlugActiondeepCopy(ProductChangeSlugAction template) factory method to create a deep copy of ProductChangeSlugAction@NotNull @Valid LocalizedStringgetSlug()Value to set.Iftrue, only the stagedslugis updated.static ProductChangeSlugActionof()factory methodstatic ProductChangeSlugActionof(ProductChangeSlugAction template) factory method to create a shallow copy ProductChangeSlugActionvoidsetSlug(LocalizedString slug) Value to set.voidIftrue, only the stagedslugis updated.static com.fasterxml.jackson.core.type.TypeReference<ProductChangeSlugAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_SLUG
discriminator value for ProductChangeSlugAction- See Also:
-
-
Method Details
-
getSlug
Value to set. Must not be empty. A Product can have the same slug for different Locales, but it must be unique across the Project. Must match the pattern
^[A-Za-z0-9_-]{2,256}+$.- Returns:
- slug
-
getStaged
Boolean getStaged()If
true, only the stagedslugis updated. Iffalse, both the current and stagedslugare updated.- Returns:
- staged
-
setSlug
Value to set. Must not be empty. A Product can have the same slug for different Locales, but it must be unique across the Project. Must match the pattern
^[A-Za-z0-9_-]{2,256}+$.- Parameters:
slug- value to be set
-
setStaged
If
true, only the stagedslugis updated. Iffalse, both the current and stagedslugare updated.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of ProductChangeSlugAction
-
of
factory method to create a shallow copy ProductChangeSlugAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductChangeSlugAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
deepCopy
factory method to create a deep copy of ProductChangeSlugAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductChangeSlugAction- Returns:
- builder
-
builder
create builder for ProductChangeSlugAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductChangeSlugAction
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
-