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