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