Class MyShoppingListRemoveLineItemActionBuilder
- All Implemented Interfaces:
Builder<MyShoppingListRemoveLineItemAction>
Example to create an instance using the builder pattern
MyShoppingListRemoveLineItemAction myShoppingListRemoveLineItemAction = MyShoppingListRemoveLineItemAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds MyShoppingListRemoveLineItemAction with checking for non-null required valuesbuilds MyShoppingListRemoveLineItemAction without checking for non-null required valuesTheidof the ShoppingListLineItem to update.Thekeyof the ShoppingListLineItem to update.Amount to remove from thequantityof the ShoppingListLineItem.lineItemId(String lineItemId) Theidof the ShoppingListLineItem to update.lineItemKey(String lineItemKey) Thekeyof the ShoppingListLineItem to update.of()factory method for an instance of MyShoppingListRemoveLineItemActionBuilderof(MyShoppingListRemoveLineItemAction template) create builder for MyShoppingListRemoveLineItemAction instanceAmount to remove from thequantityof the ShoppingListLineItem.
-
Constructor Details
-
MyShoppingListRemoveLineItemActionBuilder
public MyShoppingListRemoveLineItemActionBuilder()
-
-
Method Details
-
lineItemId
The
idof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set- Returns:
- Builder
-
lineItemKey
The
keyof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemKey- value to be set- Returns:
- Builder
-
quantity
Amount to remove from the
quantityof the ShoppingListLineItem. If not set, the ShoppingListLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantityof the ShoppingListLineItem, the ShoppingListLineItem is removed from the ShoppingList.- Parameters:
quantity- value to be set- Returns:
- Builder
-
getLineItemId
The
idof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
The
keyof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getQuantity
Amount to remove from the
quantityof the ShoppingListLineItem. If not set, the ShoppingListLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantityof the ShoppingListLineItem, the ShoppingListLineItem is removed from the ShoppingList.- Returns:
- quantity
-
build
builds MyShoppingListRemoveLineItemAction with checking for non-null required values- Specified by:
buildin 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
-