Class ProductSetMetaKeywordsActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductSetMetaKeywordsActionBuilder
- All Implemented Interfaces:
Builder<ProductSetMetaKeywordsAction>
public class ProductSetMetaKeywordsActionBuilder
extends Object
implements Builder<ProductSetMetaKeywordsAction>
ProductSetMetaKeywordsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetMetaKeywordsAction productSetMetaKeywordsAction = ProductSetMetaKeywordsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSetMetaKeywordsAction with checking for non-null required valuesbuilds ProductSetMetaKeywordsAction 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 ProductSetMetaKeywordsActionBuilderof
(ProductSetMetaKeywordsAction template) create builder for ProductSetMetaKeywordsAction instanceIftrue
, only the stagedmetaKeywords
is updated.Value to set.
-
Constructor Details
-
ProductSetMetaKeywordsActionBuilder
public ProductSetMetaKeywordsActionBuilder()
-
-
Method Details
-
metaKeywords
public ProductSetMetaKeywordsActionBuilder 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 ProductSetMetaKeywordsActionBuilder 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
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 ProductSetMetaKeywordsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSetMetaKeywordsAction>
- Returns:
- ProductSetMetaKeywordsAction
-
buildUnchecked
builds ProductSetMetaKeywordsAction without checking for non-null required values- Returns:
- ProductSetMetaKeywordsAction
-
of
factory method for an instance of ProductSetMetaKeywordsActionBuilder- Returns:
- builder
-
of
create builder for ProductSetMetaKeywordsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-