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
Constructors -
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.Theidof the TextLineItem to update.Thekeyof 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) Theidof the TextLineItem to update.textLineItemKey(String textLineItemKey) Thekeyof the TextLineItem to update.New value to set.
-
Constructor Details
-
ShoppingListChangeTextLineItemNameActionBuilder
public ShoppingListChangeTextLineItemNameActionBuilder()
-
-
Method Details
-
textLineItemId
public ShoppingListChangeTextLineItemNameActionBuilder textLineItemId(@Nullable String textLineItemId) The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemId- value to be set- Returns:
- Builder
-
textLineItemKey
public ShoppingListChangeTextLineItemNameActionBuilder textLineItemKey(@Nullable String textLineItemKey) The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis 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
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- textLineItemId
-
getTextLineItemKey
The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis 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:
buildin 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
-