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