Class CategoryChangeSlugActionBuilder
- All Implemented Interfaces:
Builder<CategoryChangeSlugAction>
Example to create an instance using the builder pattern
CategoryChangeSlugAction categoryChangeSlugAction = CategoryChangeSlugAction.builder()
.slug(slugBuilder -> slugBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CategoryChangeSlugAction with checking for non-null required valuesbuilds CategoryChangeSlugAction without checking for non-null required valuesgetSlug()
New value to set.of()
factory method for an instance of CategoryChangeSlugActionBuilderof
(CategoryChangeSlugAction template) create builder for CategoryChangeSlugAction instanceslug
(LocalizedString slug) New value to set.New value to set.New value to set.
-
Constructor Details
-
CategoryChangeSlugActionBuilder
public CategoryChangeSlugActionBuilder()
-
-
Method Details
-
slug
public CategoryChangeSlugActionBuilder slug(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) New value to set. Must not be empty. A Category can have the same slug for different Locales, but it must be unique across the Project. Valid slugs must match the pattern
^[A-Za-z0-9_-]{2,256}+$
.- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
withSlug
public CategoryChangeSlugActionBuilder withSlug(Function<LocalizedStringBuilder, LocalizedString> builder) New value to set. Must not be empty. A Category can have the same slug for different Locales, but it must be unique across the Project. Valid slugs must match the pattern
^[A-Za-z0-9_-]{2,256}+$
.- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
slug
New value to set. Must not be empty. A Category can have the same slug for different Locales, but it must be unique across the Project. Valid slugs must match the pattern
^[A-Za-z0-9_-]{2,256}+$
.- Parameters:
slug
- value to be set- Returns:
- Builder
-
getSlug
New value to set. Must not be empty. A Category can have the same slug for different Locales, but it must be unique across the Project. Valid slugs must match the pattern
^[A-Za-z0-9_-]{2,256}+$
.- Returns:
- slug
-
build
builds CategoryChangeSlugAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CategoryChangeSlugAction>
- Returns:
- CategoryChangeSlugAction
-
buildUnchecked
builds CategoryChangeSlugAction without checking for non-null required values- Returns:
- CategoryChangeSlugAction
-
of
factory method for an instance of CategoryChangeSlugActionBuilder- Returns:
- builder
-
of
create builder for CategoryChangeSlugAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-