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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyShoppingListChangeLineItemQuantityAction with checking for non-null required valuesbuilds MyShoppingListChangeLineItemQuantityAction without checking for non-null required valuesid
of the ShoppingListLineItem to update.key
of the ShoppingListLineItem to update.New value to set.lineItemId
(String lineItemId) id
of the ShoppingListLineItem to update.lineItemKey
(String lineItemKey) key
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
public MyShoppingListChangeLineItemQuantityActionBuilder()
-
-
Method Details
-
lineItemId
id
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
key
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is 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
id
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
key
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is 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:
build
in 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
-