Class ProductSelectionChangeNameActionBuilder
java.lang.Object
com.commercetools.api.models.product_selection.ProductSelectionChangeNameActionBuilder
- All Implemented Interfaces:
Builder<ProductSelectionChangeNameAction>
public class ProductSelectionChangeNameActionBuilder
extends Object
implements Builder<ProductSelectionChangeNameAction>
ProductSelectionChangeNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionChangeNameAction productSelectionChangeNameAction = ProductSelectionChangeNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSelectionChangeNameAction with checking for non-null required valuesbuilds ProductSelectionChangeNameAction without checking for non-null required valuesgetName()
The new name to be set for the ProductSelection.name
(LocalizedString name) The new name to be set for the ProductSelection.The new name to be set for the ProductSelection.of()
factory method for an instance of ProductSelectionChangeNameActionBuilderof
(ProductSelectionChangeNameAction template) create builder for ProductSelectionChangeNameAction instanceThe new name to be set for the ProductSelection.
-
Constructor Details
-
ProductSelectionChangeNameActionBuilder
public ProductSelectionChangeNameActionBuilder()
-
-
Method Details
-
name
public ProductSelectionChangeNameActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The new name to be set for the ProductSelection.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public ProductSelectionChangeNameActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) The new name to be set for the ProductSelection.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
The new name to be set for the ProductSelection.
- Parameters:
name
- value to be set- Returns:
- Builder
-
getName
The new name to be set for the ProductSelection.
- Returns:
- name
-
build
builds ProductSelectionChangeNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSelectionChangeNameAction>
- Returns:
- ProductSelectionChangeNameAction
-
buildUnchecked
builds ProductSelectionChangeNameAction without checking for non-null required values- Returns:
- ProductSelectionChangeNameAction
-
of
factory method for an instance of ProductSelectionChangeNameActionBuilder- Returns:
- builder
-
of
create builder for ProductSelectionChangeNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-