Class ShoppingListRemoveLineItemActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListRemoveLineItemAction>
Example to create an instance using the builder pattern
ShoppingListRemoveLineItemAction shoppingListRemoveLineItemAction = ShoppingListRemoveLineItemAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListRemoveLineItemAction with checking for non-null required valuesbuilds ShoppingListRemoveLineItemAction 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 ShoppingListRemoveLineItemActionBuilderof
(ShoppingListRemoveLineItemAction template) create builder for ShoppingListRemoveLineItemAction instanceAmount to remove from thequantity
of the ShoppingListLineItem.
-
Constructor Details
-
ShoppingListRemoveLineItemActionBuilder
public ShoppingListRemoveLineItemActionBuilder()
-
-
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 ShoppingListRemoveLineItemAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListRemoveLineItemAction>
- Returns:
- ShoppingListRemoveLineItemAction
-
buildUnchecked
builds ShoppingListRemoveLineItemAction without checking for non-null required values- Returns:
- ShoppingListRemoveLineItemAction
-
of
factory method for an instance of ShoppingListRemoveLineItemActionBuilder- Returns:
- builder
-
of
create builder for ShoppingListRemoveLineItemAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-