Package com.commercetools.api.models.me
Class MyShoppingListChangeLineItemQuantityActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyShoppingListChangeLineItemQuantityActionBuilder
- All Implemented Interfaces:
Builder<MyShoppingListChangeLineItemQuantityAction>
public class MyShoppingListChangeLineItemQuantityActionBuilder
extends Object
implements Builder<MyShoppingListChangeLineItemQuantityAction>
MyShoppingListChangeLineItemQuantityActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListChangeLineItemQuantityAction myShoppingListChangeLineItemQuantityAction = MyShoppingListChangeLineItemQuantityAction.builder()
.quantity(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds MyShoppingListChangeLineItemQuantityAction with checking for non-null required valuesbuilds MyShoppingListChangeLineItemQuantityAction without checking for non-null required valuesidof the ShoppingListLineItem to update.keyof the ShoppingListLineItem to update.New value to set.lineItemId(String lineItemId) idof the ShoppingListLineItem to update.lineItemKey(String lineItemKey) keyof the ShoppingListLineItem to update.of()factory method for an instance of MyShoppingListChangeLineItemQuantityActionBuilderof(MyShoppingListChangeLineItemQuantityAction template) create builder for MyShoppingListChangeLineItemQuantityAction instanceNew value to set.
-
Constructor Details
-
MyShoppingListChangeLineItemQuantityActionBuilder
public MyShoppingListChangeLineItemQuantityActionBuilder()
-
-
Method Details
-
lineItemId
idof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set- Returns:
- Builder
-
lineItemKey
keyof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemKey- value to be set- Returns:
- Builder
-
quantity
New value to set. If
0, the ShoppingListLineItem is removed from the ShoppingList.- Parameters:
quantity- value to be set- Returns:
- Builder
-
getLineItemId
idof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
keyof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getQuantity
New value to set. If
0, the ShoppingListLineItem is removed from the ShoppingList.- Returns:
- quantity
-
build
builds MyShoppingListChangeLineItemQuantityAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<MyShoppingListChangeLineItemQuantityAction>- Returns:
- MyShoppingListChangeLineItemQuantityAction
-
buildUnchecked
builds MyShoppingListChangeLineItemQuantityAction without checking for non-null required values- Returns:
- MyShoppingListChangeLineItemQuantityAction
-
of
factory method for an instance of MyShoppingListChangeLineItemQuantityActionBuilder- Returns:
- builder
-
of
public static MyShoppingListChangeLineItemQuantityActionBuilder of(MyShoppingListChangeLineItemQuantityAction template) create builder for MyShoppingListChangeLineItemQuantityAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-