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