Package com.commercetools.api.models.me
Class MyShoppingListRemoveLineItemActionImpl
java.lang.Object
com.commercetools.api.models.me.MyShoppingListRemoveLineItemActionImpl
- All Implemented Interfaces:
MyShoppingListRemoveLineItemAction
,MyShoppingListUpdateAction
,ResourceUpdateAction<MyShoppingListUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class MyShoppingListRemoveLineItemActionImpl
extends Object
implements MyShoppingListRemoveLineItemAction, io.vrap.rmf.base.client.ModelBase
MyShoppingListRemoveLineItemAction
-
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Theid
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
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
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.- Specified by:
getLineItemId
in interfaceMyShoppingListRemoveLineItemAction
- Returns:
- lineItemId
-
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.- Specified by:
setLineItemId
in interfaceMyShoppingListRemoveLineItemAction
- Parameters:
lineItemId
- 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
-