Class MyShoppingListRemoveLineItemActionImpl
- All Implemented Interfaces:
MyShoppingListRemoveLineItemAction
,MyShoppingListUpdateAction
,ResourceUpdateAction<MyShoppingListUpdateAction>
,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.me.MyShoppingListRemoveLineItemAction
REMOVE_LINE_ITEM
-
Constructor Summary
Constructors -
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.me.MyShoppingListRemoveLineItemAction
withMyShoppingListRemoveLineItemAction
Methods inherited from interface com.commercetools.api.models.me.MyShoppingListUpdateAction
withMyShoppingListUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
MyShoppingListRemoveLineItemActionImpl
public MyShoppingListRemoveLineItemActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceMyShoppingListUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<MyShoppingListUpdateAction>
- Returns:
- action
-
getLineItemId
The
id
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemId
in interfaceMyShoppingListRemoveLineItemAction
- Returns:
- lineItemId
-
getLineItemKey
The
key
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceMyShoppingListRemoveLineItemAction
- 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 interfaceMyShoppingListRemoveLineItemAction
- Returns:
- quantity
-
setLineItemId
Description copied from interface:MyShoppingListRemoveLineItemAction
The
id
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceMyShoppingListRemoveLineItemAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:MyShoppingListRemoveLineItemAction
The
key
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceMyShoppingListRemoveLineItemAction
- Parameters:
lineItemKey
- value to be set
-
setQuantity
Description copied from interface:MyShoppingListRemoveLineItemAction
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 interfaceMyShoppingListRemoveLineItemAction
- Parameters:
quantity
- value to be set
-
equals
-
hashCode
public int hashCode()
-