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