Class ShoppingListRemoveLineItemActionImpl
- All Implemented Interfaces:
ResourceUpdateAction<ShoppingListUpdateAction>
,ShoppingListRemoveLineItemAction
,ShoppingListUpdateAction
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.shopping_list.ShoppingListRemoveLineItemAction
REMOVE_LINE_ITEM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Theid
of the ShoppingListLineItem to update.Thekey
of the ShoppingListLineItem to update.Amount to remove from thequantity
of the ShoppingListLineItem.int
hashCode()
void
setLineItemId
(String lineItemId) Theid
of the ShoppingListLineItem to update.void
setLineItemKey
(String lineItemKey) Thekey
of the ShoppingListLineItem to update.void
setQuantity
(Long quantity) Amount to remove from thequantity
of the ShoppingListLineItem.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListRemoveLineItemAction
withShoppingListRemoveLineItemAction
Methods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListUpdateAction
withShoppingListUpdateAction
-
Constructor Details
-
ShoppingListRemoveLineItemActionImpl
public ShoppingListRemoveLineItemActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ShoppingListUpdateAction>
- Specified by:
getAction
in interfaceShoppingListUpdateAction
- Returns:
- action
-
getLineItemId
The
id
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemId
in interfaceShoppingListRemoveLineItemAction
- Returns:
- lineItemId
-
getLineItemKey
The
key
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceShoppingListRemoveLineItemAction
- 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.- Specified by:
getQuantity
in interfaceShoppingListRemoveLineItemAction
- Returns:
- quantity
-
setLineItemId
Description copied from interface:ShoppingListRemoveLineItemAction
The
id
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceShoppingListRemoveLineItemAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:ShoppingListRemoveLineItemAction
The
key
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceShoppingListRemoveLineItemAction
- Parameters:
lineItemKey
- value to be set
-
setQuantity
Description copied from interface:ShoppingListRemoveLineItemAction
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.- Specified by:
setQuantity
in interfaceShoppingListRemoveLineItemAction
- Parameters:
quantity
- value to be set
-
equals
-
hashCode
-