Class ShoppingListSetSlugActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListSetSlugAction>
Example to create an instance using the builder pattern
ShoppingListSetSlugAction shoppingListSetSlugAction = ShoppingListSetSlugAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListSetSlugAction with checking for non-null required valuesbuilds ShoppingListSetSlugAction without checking for non-null required valuesgetSlug()
Value to set.of()
factory method for an instance of ShoppingListSetSlugActionBuilderof
(ShoppingListSetSlugAction template) create builder for ShoppingListSetSlugAction instanceslug
(LocalizedString slug) Value to set.Value to set.Value to set.
-
Constructor Details
-
ShoppingListSetSlugActionBuilder
public ShoppingListSetSlugActionBuilder()
-
-
Method Details
-
slug
public ShoppingListSetSlugActionBuilder slug(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) 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:
builder
- function to build the slug value- Returns:
- Builder
-
withSlug
public ShoppingListSetSlugActionBuilder withSlug(Function<LocalizedStringBuilder, LocalizedString> builder) 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:
builder
- function to build the slug value- Returns:
- Builder
-
slug
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- Returns:
- Builder
-
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
-
build
builds ShoppingListSetSlugAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListSetSlugAction>
- Returns:
- ShoppingListSetSlugAction
-
buildUnchecked
builds ShoppingListSetSlugAction without checking for non-null required values- Returns:
- ShoppingListSetSlugAction
-
of
factory method for an instance of ShoppingListSetSlugActionBuilder- Returns:
- builder
-
of
create builder for ShoppingListSetSlugAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-