Interface ProductTailoringSetSlugAction
- All Superinterfaces:
ProductTailoringUpdateAction
Generates the ProductTailoringSlugSet Message.
Example to create an instance using the builder pattern
ProductTailoringSetSlugAction productTailoringSetSlugAction = ProductTailoringSetSlugAction.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTailoringSetSlugActionbuilder
(ProductTailoringSetSlugAction template) create builder for ProductTailoringSetSlugAction instancedeepCopy
(ProductTailoringSetSlugAction template) factory method to create a deep copy of ProductTailoringSetSlugAction@Valid LocalizedString
getSlug()
Value to set.Iftrue
, only the stagedslug
is updated.of()
factory methodof
(ProductTailoringSetSlugAction template) factory method to create a shallow copy ProductTailoringSetSlugActionvoid
setSlug
(LocalizedString slug) Value to set.void
Iftrue
, only the stagedslug
is updated.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringSetSlugAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_tailoring.ProductTailoringUpdateAction
getAction, withProductTailoringUpdateAction
-
Field Details
-
SET_SLUG
discriminator value for ProductTailoringSetSlugAction- See Also:
-
-
Method Details
-
getSlug
Value to set. If empty, any existing value will be removed.
- 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. If empty, any existing value will be removed.
- 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 ProductTailoringSetSlugAction
-
of
factory method to create a shallow copy ProductTailoringSetSlugAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTailoringSetSlugAction deepCopy(@Nullable ProductTailoringSetSlugAction template) factory method to create a deep copy of ProductTailoringSetSlugAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringSetSlugAction- Returns:
- builder
-
builder
create builder for ProductTailoringSetSlugAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringSetSlugAction
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
-