Class ShoppingListChangeTextLineItemNameActionBuilder
java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListChangeTextLineItemNameActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListChangeTextLineItemNameAction>
public class ShoppingListChangeTextLineItemNameActionBuilder
extends Object
implements Builder<ShoppingListChangeTextLineItemNameAction>
ShoppingListChangeTextLineItemNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListChangeTextLineItemNameAction shoppingListChangeTextLineItemNameAction = ShoppingListChangeTextLineItemNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListChangeTextLineItemNameAction with checking for non-null required valuesbuilds ShoppingListChangeTextLineItemNameAction 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 ShoppingListChangeTextLineItemNameActionBuilderof
(ShoppingListChangeTextLineItemNameAction template) create builder for ShoppingListChangeTextLineItemNameAction instancetextLineItemId
(String textLineItemId) Theid
of the TextLineItem to update.textLineItemKey
(String textLineItemKey) Thekey
of the TextLineItem to update.New value to set.
-
Constructor Details
-
ShoppingListChangeTextLineItemNameActionBuilder
public ShoppingListChangeTextLineItemNameActionBuilder()
-
-
Method Details
-
textLineItemId
public ShoppingListChangeTextLineItemNameActionBuilder 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 ShoppingListChangeTextLineItemNameActionBuilder 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 ShoppingListChangeTextLineItemNameActionBuilder 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 ShoppingListChangeTextLineItemNameActionBuilder 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 ShoppingListChangeTextLineItemNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListChangeTextLineItemNameAction>
- Returns:
- ShoppingListChangeTextLineItemNameAction
-
buildUnchecked
builds ShoppingListChangeTextLineItemNameAction without checking for non-null required values- Returns:
- ShoppingListChangeTextLineItemNameAction
-
of
factory method for an instance of ShoppingListChangeTextLineItemNameActionBuilder- Returns:
- builder
-
of
public static ShoppingListChangeTextLineItemNameActionBuilder of(ShoppingListChangeTextLineItemNameAction template) create builder for ShoppingListChangeTextLineItemNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-