Interface ShoppingListSetSlugAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>
,ShoppingListUpdateAction
ShoppingListSetSlugAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListSetSlugAction shoppingListSetSlugAction = ShoppingListSetSlugAction.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShoppingListSetSlugActionbuilder
(ShoppingListSetSlugAction template) create builder for ShoppingListSetSlugAction instancestatic ShoppingListSetSlugAction
deepCopy
(ShoppingListSetSlugAction template) factory method to create a deep copy of ShoppingListSetSlugAction@Valid LocalizedString
getSlug()
Value to set.static ShoppingListSetSlugAction
of()
factory methodstatic ShoppingListSetSlugAction
of
(ShoppingListSetSlugAction template) factory method to create a shallow copy ShoppingListSetSlugActionstatic ShoppingListSetSlugAction
ofUnset()
void
setSlug
(LocalizedString slug) Value to set.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListSetSlugAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListUpdateAction
getAction, withShoppingListUpdateAction
-
Field Details
-
SET_SLUG
discriminator value for ShoppingListSetSlugAction- See Also:
-
-
Method Details
-
getSlug
Value to set. If empty, any existing value will be removed. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. Must match the pattern
^[A-Za-z0-9_-]{2,256}+$
- Returns:
- slug
-
setSlug
Value to set. If empty, any existing value will be removed. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. Must match the pattern
^[A-Za-z0-9_-]{2,256}+$
- Parameters:
slug
- value to be set
-
of
factory method- Returns:
- instance of ShoppingListSetSlugAction
-
of
factory method to create a shallow copy ShoppingListSetSlugAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ShoppingListSetSlugAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListSetSlugAction- Returns:
- builder
-
builder
create builder for ShoppingListSetSlugAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListSetSlugAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-