Class ProductTailoringSetSlugActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringSetSlugActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringSetSlugAction>
public class ProductTailoringSetSlugActionBuilder
extends Object
implements Builder<ProductTailoringSetSlugAction>
ProductTailoringSetSlugActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringSetSlugAction productTailoringSetSlugAction = ProductTailoringSetSlugAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringSetSlugAction with checking for non-null required valuesbuilds ProductTailoringSetSlugAction without checking for non-null required valuesgetSlug()
Value to set.Iftrue
, only the stagedslug
is updated.of()
factory method for an instance of ProductTailoringSetSlugActionBuilderof
(ProductTailoringSetSlugAction template) create builder for ProductTailoringSetSlugAction instanceslug
(LocalizedString slug) Value to set.Value to set.Iftrue
, only the stagedslug
is updated.Value to set.
-
Constructor Details
-
ProductTailoringSetSlugActionBuilder
public ProductTailoringSetSlugActionBuilder()
-
-
Method Details
-
slug
public ProductTailoringSetSlugActionBuilder slug(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
withSlug
public ProductTailoringSetSlugActionBuilder withSlug(Function<LocalizedStringBuilder, LocalizedString> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
slug
Value to set. If empty, any existing value will be removed.
- 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. If empty, any existing value will be removed.
- Returns:
- slug
-
getStaged
If
true
, only the stagedslug
is updated. Iffalse
, both the current and stagedslug
are updated.- Returns:
- staged
-
build
builds ProductTailoringSetSlugAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringSetSlugAction>
- Returns:
- ProductTailoringSetSlugAction
-
buildUnchecked
builds ProductTailoringSetSlugAction without checking for non-null required values- Returns:
- ProductTailoringSetSlugAction
-
of
factory method for an instance of ProductTailoringSetSlugActionBuilder- Returns:
- builder
-
of
create builder for ProductTailoringSetSlugAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-