Class ShoppingListChangeNameActionBuilder
java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListChangeNameActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListChangeNameAction>
public class ShoppingListChangeNameActionBuilder
extends Object
implements Builder<ShoppingListChangeNameAction>
ShoppingListChangeNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListChangeNameAction shoppingListChangeNameAction = ShoppingListChangeNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ShoppingListChangeNameAction with checking for non-null required valuesbuilds ShoppingListChangeNameAction without checking for non-null required valuesgetName()New value to set.name(LocalizedString name) New value to set.New value to set.of()factory method for an instance of ShoppingListChangeNameActionBuilderof(ShoppingListChangeNameAction template) create builder for ShoppingListChangeNameAction instanceNew value to set.
-
Constructor Details
-
ShoppingListChangeNameActionBuilder
public ShoppingListChangeNameActionBuilder()
-
-
Method Details
-
name
public ShoppingListChangeNameActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) New value to set. Must not be empty.
- Parameters:
builder- function to build the name value- Returns:
- Builder
-
withName
public ShoppingListChangeNameActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) New value to set. Must not be empty.
- Parameters:
builder- function to build the name value- Returns:
- Builder
-
name
New value to set. Must not be empty.
- Parameters:
name- value to be set- Returns:
- Builder
-
getName
New value to set. Must not be empty.
- Returns:
- name
-
build
builds ShoppingListChangeNameAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ShoppingListChangeNameAction>- Returns:
- ShoppingListChangeNameAction
-
buildUnchecked
builds ShoppingListChangeNameAction without checking for non-null required values- Returns:
- ShoppingListChangeNameAction
-
of
factory method for an instance of ShoppingListChangeNameActionBuilder- Returns:
- builder
-
of
create builder for ShoppingListChangeNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-