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