Class ProductChangeNameActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductChangeNameActionBuilder
- All Implemented Interfaces:
Builder<ProductChangeNameAction>
public class ProductChangeNameActionBuilder
extends Object
implements Builder<ProductChangeNameAction>
ProductChangeNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductChangeNameAction productChangeNameAction = ProductChangeNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductChangeNameAction with checking for non-null required valuesbuilds ProductChangeNameAction 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 ProductChangeNameActionBuilderof
(ProductChangeNameAction template) create builder for ProductChangeNameAction instanceIftrue
, only the stagedname
is updated.Value to set.
-
Constructor Details
-
ProductChangeNameActionBuilder
public ProductChangeNameActionBuilder()
-
-
Method Details
-
name
public ProductChangeNameActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. Must not be empty.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public ProductChangeNameActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) Value to set. Must not be empty.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Value to set. Must not be empty.
- 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. Must not be empty.
- Returns:
- name
-
getStaged
If
true
, only the stagedname
is updated. Iffalse
, both the current and stagedname
are updated.- Returns:
- staged
-
build
builds ProductChangeNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductChangeNameAction>
- Returns:
- ProductChangeNameAction
-
buildUnchecked
builds ProductChangeNameAction without checking for non-null required values- Returns:
- ProductChangeNameAction
-
of
factory method for an instance of ProductChangeNameActionBuilder- Returns:
- builder
-
of
create builder for ProductChangeNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-