Package com.commercetools.api.models.me
Class MyShoppingListChangeLineItemQuantityActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyShoppingListChangeLineItemQuantityActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<MyShoppingListChangeLineItemQuantityAction>
public class MyShoppingListChangeLineItemQuantityActionBuilder
extends Object
implements io.vrap.rmf.base.client.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()
.lineItemId("{lineItemId}")
.quantity(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyShoppingListChangeLineItemQuantityAction with checking for non-null required valuesbuilds MyShoppingListChangeLineItemQuantityAction without checking for non-null required valuesTheid
of the ShoppingListLineItem to update.New value to set.lineItemId
(String lineItemId) Theid
of 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
-
-
Method Details
-
lineItemId
The
id
of the ShoppingListLineItem to update.- Parameters:
lineItemId
- 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
The
id
of the ShoppingListLineItem to update.- Returns:
- lineItemId
-
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:
build
in interfaceio.vrap.rmf.base.client.Builder<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
-