Class ProductChangeSlugActionBuilder
- All Implemented Interfaces:
Builder<ProductChangeSlugAction>
Example to create an instance using the builder pattern
ProductChangeSlugAction productChangeSlugAction = ProductChangeSlugAction.builder()
.slug(slugBuilder -> slugBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductChangeSlugAction with checking for non-null required valuesbuilds ProductChangeSlugAction without checking for non-null required valuesgetSlug()
Value to set.Iftrue
, only the stagedslug
is updated.of()
factory method for an instance of ProductChangeSlugActionBuilderof
(ProductChangeSlugAction template) create builder for ProductChangeSlugAction instanceslug
(LocalizedString slug) Value to set.Value to set.Iftrue
, only the stagedslug
is updated.Value to set.
-
Constructor Details
-
ProductChangeSlugActionBuilder
public ProductChangeSlugActionBuilder()
-
-
Method Details
-
slug
public ProductChangeSlugActionBuilder slug(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) 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:
builder
- function to build the slug value- Returns:
- Builder
-
withSlug
public ProductChangeSlugActionBuilder withSlug(Function<LocalizedStringBuilder, LocalizedString> builder) 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:
builder
- function to build the slug value- Returns:
- Builder
-
slug
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- Returns:
- Builder
-
staged
If
true
, only the stagedslug
is updated. Iffalse
, both the current and stagedslug
are updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
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
If
true
, only the stagedslug
is updated. Iffalse
, both the current and stagedslug
are updated.- Returns:
- staged
-
build
builds ProductChangeSlugAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductChangeSlugAction>
- Returns:
- ProductChangeSlugAction
-
buildUnchecked
builds ProductChangeSlugAction without checking for non-null required values- Returns:
- ProductChangeSlugAction
-
of
factory method for an instance of ProductChangeSlugActionBuilder- Returns:
- builder
-
of
create builder for ProductChangeSlugAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-