Class MyShoppingListRemoveLineItemActionBuilder
- All Implemented Interfaces:
Builder<MyShoppingListRemoveLineItemAction>
Example to create an instance using the builder pattern
MyShoppingListRemoveLineItemAction myShoppingListRemoveLineItemAction = MyShoppingListRemoveLineItemAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyShoppingListRemoveLineItemAction with checking for non-null required valuesbuilds MyShoppingListRemoveLineItemAction without checking for non-null required valuesTheid
of the ShoppingListLineItem to update.Thekey
of the ShoppingListLineItem to update.Amount to remove from thequantity
of the ShoppingListLineItem.lineItemId
(String lineItemId) Theid
of the ShoppingListLineItem to update.lineItemKey
(String lineItemKey) Thekey
of the ShoppingListLineItem to update.of()
factory method for an instance of MyShoppingListRemoveLineItemActionBuilderof
(MyShoppingListRemoveLineItemAction template) create builder for MyShoppingListRemoveLineItemAction instanceAmount to remove from thequantity
of the ShoppingListLineItem.
-
Constructor Details
-
MyShoppingListRemoveLineItemActionBuilder
public MyShoppingListRemoveLineItemActionBuilder()
-
-
Method Details
-
lineItemId
The
id
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
The
key
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
quantity
Amount to remove from the
quantity
of the ShoppingListLineItem. If not set, the ShoppingListLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantity
of the ShoppingListLineItem, the ShoppingListLineItem is removed from the ShoppingList.- Parameters:
quantity
- value to be set- Returns:
- Builder
-
getLineItemId
The
id
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
The
key
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getQuantity
Amount to remove from the
quantity
of the ShoppingListLineItem. If not set, the ShoppingListLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantity
of the ShoppingListLineItem, the ShoppingListLineItem is removed from the ShoppingList.- Returns:
- quantity
-
build
builds MyShoppingListRemoveLineItemAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyShoppingListRemoveLineItemAction>
- Returns:
- MyShoppingListRemoveLineItemAction
-
buildUnchecked
builds MyShoppingListRemoveLineItemAction without checking for non-null required values- Returns:
- MyShoppingListRemoveLineItemAction
-
of
factory method for an instance of MyShoppingListRemoveLineItemActionBuilder- Returns:
- builder
-
of
public static MyShoppingListRemoveLineItemActionBuilder of(MyShoppingListRemoveLineItemAction template) create builder for MyShoppingListRemoveLineItemAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-