Package com.commercetools.api.models.me
Class MyShoppingListChangeTextLineItemQuantityActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyShoppingListChangeTextLineItemQuantityActionBuilder
- All Implemented Interfaces:
Builder<MyShoppingListChangeTextLineItemQuantityAction>
public class MyShoppingListChangeTextLineItemQuantityActionBuilder
extends Object
implements Builder<MyShoppingListChangeTextLineItemQuantityAction>
MyShoppingListChangeTextLineItemQuantityActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListChangeTextLineItemQuantityAction myShoppingListChangeTextLineItemQuantityAction = MyShoppingListChangeTextLineItemQuantityAction.builder()
.quantity(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds MyShoppingListChangeTextLineItemQuantityAction with checking for non-null required valuesbuilds MyShoppingListChangeTextLineItemQuantityAction without checking for non-null required valuesNew value to set.Theidof the TextLineItem to update.Thekeyof the TextLineItem to update.of()factory method for an instance of MyShoppingListChangeTextLineItemQuantityActionBuildercreate builder for MyShoppingListChangeTextLineItemQuantityAction instanceNew value to set.textLineItemId(String textLineItemId) Theidof the TextLineItem to update.textLineItemKey(String textLineItemKey) Thekeyof the TextLineItem to update.
-
Constructor Details
-
MyShoppingListChangeTextLineItemQuantityActionBuilder
public MyShoppingListChangeTextLineItemQuantityActionBuilder()
-
-
Method Details
-
textLineItemId
public MyShoppingListChangeTextLineItemQuantityActionBuilder textLineItemId(@Nullable String textLineItemId) The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemId- value to be set- Returns:
- Builder
-
textLineItemKey
public MyShoppingListChangeTextLineItemQuantityActionBuilder textLineItemKey(@Nullable String textLineItemKey) The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemKey- value to be set- Returns:
- Builder
-
quantity
New value to set. If
0, the TextLineItem is removed from the ShoppingList.- Parameters:
quantity- 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
-
getQuantity
New value to set. If
0, the TextLineItem is removed from the ShoppingList.- Returns:
- quantity
-
build
builds MyShoppingListChangeTextLineItemQuantityAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<MyShoppingListChangeTextLineItemQuantityAction>- Returns:
- MyShoppingListChangeTextLineItemQuantityAction
-
buildUnchecked
builds MyShoppingListChangeTextLineItemQuantityAction without checking for non-null required values- Returns:
- MyShoppingListChangeTextLineItemQuantityAction
-
of
factory method for an instance of MyShoppingListChangeTextLineItemQuantityActionBuilder- Returns:
- builder
-
of
public static MyShoppingListChangeTextLineItemQuantityActionBuilder of(MyShoppingListChangeTextLineItemQuantityAction template) create builder for MyShoppingListChangeTextLineItemQuantityAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-