Class ProductSetDescriptionActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductSetDescriptionActionBuilder
- All Implemented Interfaces:
Builder<ProductSetDescriptionAction>
public class ProductSetDescriptionActionBuilder
extends Object
implements Builder<ProductSetDescriptionAction>
ProductSetDescriptionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetDescriptionAction productSetDescriptionAction = ProductSetDescriptionAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductSetDescriptionAction with checking for non-null required valuesbuilds ProductSetDescriptionAction without checking for non-null required valuesdescription(LocalizedString description) Value to set.Value to set.Value to set.Iftrue, only the stageddescriptionis updated.of()factory method for an instance of ProductSetDescriptionActionBuilderof(ProductSetDescriptionAction template) create builder for ProductSetDescriptionAction instanceIftrue, only the stageddescriptionis updated.Value to set.
-
Constructor Details
-
ProductSetDescriptionActionBuilder
public ProductSetDescriptionActionBuilder()
-
-
Method Details
-
description
public ProductSetDescriptionActionBuilder 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 ProductSetDescriptionActionBuilder 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
Value to set. If empty, any existing value will be removed.
- Parameters:
description- value to be set- Returns:
- Builder
-
staged
If
true, only the stageddescriptionis updated. Iffalse, both the current and stageddescriptionare 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 stageddescriptionis updated. Iffalse, both the current and stageddescriptionare updated.- Returns:
- staged
-
build
builds ProductSetDescriptionAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductSetDescriptionAction>- Returns:
- ProductSetDescriptionAction
-
buildUnchecked
builds ProductSetDescriptionAction without checking for non-null required values- Returns:
- ProductSetDescriptionAction
-
of
factory method for an instance of ProductSetDescriptionActionBuilder- Returns:
- builder
-
of
create builder for ProductSetDescriptionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-