Package com.commercetools.api.models.me
Class MyShoppingListChangeTextLineItemNameActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyShoppingListChangeTextLineItemNameActionBuilder
- All Implemented Interfaces:
Builder<MyShoppingListChangeTextLineItemNameAction>
public class MyShoppingListChangeTextLineItemNameActionBuilder
extends Object
implements Builder<MyShoppingListChangeTextLineItemNameAction>
MyShoppingListChangeTextLineItemNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListChangeTextLineItemNameAction myShoppingListChangeTextLineItemNameAction = MyShoppingListChangeTextLineItemNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyShoppingListChangeTextLineItemNameAction with checking for non-null required valuesbuilds MyShoppingListChangeTextLineItemNameAction without checking for non-null required valuesgetName()
New value to set.Theid
of the TextLineItem to update.Thekey
of the TextLineItem to update.name
(LocalizedString name) New value to set.New value to set.of()
factory method for an instance of MyShoppingListChangeTextLineItemNameActionBuilderof
(MyShoppingListChangeTextLineItemNameAction template) create builder for MyShoppingListChangeTextLineItemNameAction instancetextLineItemId
(String textLineItemId) Theid
of the TextLineItem to update.textLineItemKey
(String textLineItemKey) Thekey
of the TextLineItem to update.New value to set.
-
Constructor Details
-
MyShoppingListChangeTextLineItemNameActionBuilder
public MyShoppingListChangeTextLineItemNameActionBuilder()
-
-
Method Details
-
textLineItemId
public MyShoppingListChangeTextLineItemNameActionBuilder textLineItemId(@Nullable String textLineItemId) The
id
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
textLineItemId
- value to be set- Returns:
- Builder
-
textLineItemKey
public MyShoppingListChangeTextLineItemNameActionBuilder textLineItemKey(@Nullable String textLineItemKey) The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
textLineItemKey
- value to be set- Returns:
- Builder
-
name
public MyShoppingListChangeTextLineItemNameActionBuilder 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 MyShoppingListChangeTextLineItemNameActionBuilder 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
-
getTextLineItemId
The
id
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- textLineItemId
-
getTextLineItemKey
The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- textLineItemKey
-
getName
New value to set. Must not be empty.
- Returns:
- name
-
build
builds MyShoppingListChangeTextLineItemNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyShoppingListChangeTextLineItemNameAction>
- Returns:
- MyShoppingListChangeTextLineItemNameAction
-
buildUnchecked
builds MyShoppingListChangeTextLineItemNameAction without checking for non-null required values- Returns:
- MyShoppingListChangeTextLineItemNameAction
-
of
factory method for an instance of MyShoppingListChangeTextLineItemNameActionBuilder- Returns:
- builder
-
of
public static MyShoppingListChangeTextLineItemNameActionBuilder of(MyShoppingListChangeTextLineItemNameAction template) create builder for MyShoppingListChangeTextLineItemNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-