Class ProductTailoringSetDescriptionActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringSetDescriptionActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringSetDescriptionAction>
public class ProductTailoringSetDescriptionActionBuilder
extends Object
implements Builder<ProductTailoringSetDescriptionAction>
ProductTailoringSetDescriptionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringSetDescriptionAction productTailoringSetDescriptionAction = ProductTailoringSetDescriptionAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringSetDescriptionAction with checking for non-null required valuesbuilds ProductTailoringSetDescriptionAction without checking for non-null required valuesdescription
(LocalizedString description) Value to set.Value to set.Value to set.Iftrue
, only the stageddescription
is updated.of()
factory method for an instance of ProductTailoringSetDescriptionActionBuilderof
(ProductTailoringSetDescriptionAction template) create builder for ProductTailoringSetDescriptionAction instanceIftrue
, only the stageddescription
is updated.Value to set.
-
Constructor Details
-
ProductTailoringSetDescriptionActionBuilder
public ProductTailoringSetDescriptionActionBuilder()
-
-
Method Details
-
description
public ProductTailoringSetDescriptionActionBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public ProductTailoringSetDescriptionActionBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
public ProductTailoringSetDescriptionActionBuilder description(@Nullable LocalizedString description) Value to set. If empty, any existing value will be removed.
- Parameters:
description
- value to be set- Returns:
- Builder
-
staged
If
true
, only the stageddescription
is updated. Iffalse
, both the current and stageddescription
are updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
getStaged
If
true
, only the stageddescription
is updated. Iffalse
, both the current and stageddescription
are updated.- Returns:
- staged
-
build
builds ProductTailoringSetDescriptionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringSetDescriptionAction>
- Returns:
- ProductTailoringSetDescriptionAction
-
buildUnchecked
builds ProductTailoringSetDescriptionAction without checking for non-null required values- Returns:
- ProductTailoringSetDescriptionAction
-
of
factory method for an instance of ProductTailoringSetDescriptionActionBuilder- Returns:
- builder
-
of
public static ProductTailoringSetDescriptionActionBuilder of(ProductTailoringSetDescriptionAction template) create builder for ProductTailoringSetDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-