Package com.commercetools.api.models.me
Class MyShoppingListChangeNameActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyShoppingListChangeNameActionBuilder
- All Implemented Interfaces:
Builder<MyShoppingListChangeNameAction>
public class MyShoppingListChangeNameActionBuilder
extends Object
implements Builder<MyShoppingListChangeNameAction>
MyShoppingListChangeNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListChangeNameAction myShoppingListChangeNameAction = MyShoppingListChangeNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyShoppingListChangeNameAction with checking for non-null required valuesbuilds MyShoppingListChangeNameAction 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 MyShoppingListChangeNameActionBuilderof
(MyShoppingListChangeNameAction template) create builder for MyShoppingListChangeNameAction instanceNew value to set.
-
Constructor Details
-
MyShoppingListChangeNameActionBuilder
public MyShoppingListChangeNameActionBuilder()
-
-
Method Details
-
name
public MyShoppingListChangeNameActionBuilder 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 MyShoppingListChangeNameActionBuilder 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 MyShoppingListChangeNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyShoppingListChangeNameAction>
- Returns:
- MyShoppingListChangeNameAction
-
buildUnchecked
builds MyShoppingListChangeNameAction without checking for non-null required values- Returns:
- MyShoppingListChangeNameAction
-
of
factory method for an instance of MyShoppingListChangeNameActionBuilder- Returns:
- builder
-
of
create builder for MyShoppingListChangeNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-