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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductChangeSlugAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductChangeSlugActionbuilder
(ProductChangeSlugAction template) create builder for ProductChangeSlugAction instancestatic ProductChangeSlugAction
deepCopy
(ProductChangeSlugAction template) factory method to create a deep copy of ProductChangeSlugAction@NotNull @Valid LocalizedString
getSlug()
Value to set.Iftrue
, only the stagedslug
is updated.static ProductChangeSlugAction
of()
factory methodstatic ProductChangeSlugAction
of
(ProductChangeSlugAction template) factory method to create a shallow copy ProductChangeSlugActionvoid
setSlug
(LocalizedString slug) Value to set.void
Iftrue
, only the stagedslug
is updated.static com.fasterxml.jackson.core.type.TypeReference<ProductChangeSlugAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateAction
Methods 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 stagedslug
is updated. Iffalse
, both the current and stagedslug
are 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 stagedslug
is updated. Iffalse
, both the current and stagedslug
are 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
-
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
-