Class ShoppingListRemoveTextLineItemActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListRemoveTextLineItemAction>
Example to create an instance using the builder pattern
ShoppingListRemoveTextLineItemAction shoppingListRemoveTextLineItemAction = ShoppingListRemoveTextLineItemAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ShoppingListRemoveTextLineItemAction with checking for non-null required valuesbuilds ShoppingListRemoveTextLineItemAction without checking for non-null required valuesAmount to remove from thequantityof the TextLineItem.Theidof the TextLineItem to update.Thekeyof the TextLineItem to update.of()factory method for an instance of ShoppingListRemoveTextLineItemActionBuilderof(ShoppingListRemoveTextLineItemAction template) create builder for ShoppingListRemoveTextLineItemAction instanceAmount to remove from thequantityof the TextLineItem.textLineItemId(String textLineItemId) Theidof the TextLineItem to update.textLineItemKey(String textLineItemKey) Thekeyof the TextLineItem to update.
-
Constructor Details
-
ShoppingListRemoveTextLineItemActionBuilder
public ShoppingListRemoveTextLineItemActionBuilder()
-
-
Method Details
-
textLineItemId
The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemId- value to be set- Returns:
- Builder
-
textLineItemKey
public ShoppingListRemoveTextLineItemActionBuilder textLineItemKey(@Nullable String textLineItemKey) The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemKey- value to be set- Returns:
- Builder
-
quantity
Amount to remove from the
quantityof the TextLineItem. If not set, the TextLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantityof the TextLineItem, the TextLineItem is removed from the ShoppingList.- Parameters:
quantity- value to be set- Returns:
- Builder
-
getTextLineItemId
The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- textLineItemId
-
getTextLineItemKey
The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- textLineItemKey
-
getQuantity
Amount to remove from the
quantityof the TextLineItem. If not set, the TextLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantityof the TextLineItem, the TextLineItem is removed from the ShoppingList.- Returns:
- quantity
-
build
builds ShoppingListRemoveTextLineItemAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ShoppingListRemoveTextLineItemAction>- Returns:
- ShoppingListRemoveTextLineItemAction
-
buildUnchecked
builds ShoppingListRemoveTextLineItemAction without checking for non-null required values- Returns:
- ShoppingListRemoveTextLineItemAction
-
of
factory method for an instance of ShoppingListRemoveTextLineItemActionBuilder- Returns:
- builder
-
of
public static ShoppingListRemoveTextLineItemActionBuilder of(ShoppingListRemoveTextLineItemAction template) create builder for ShoppingListRemoveTextLineItemAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-