Class ShoppingListRemoveTextLineItemActionImpl
java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListRemoveTextLineItemActionImpl
- All Implemented Interfaces:
ResourceUpdateAction<ShoppingListUpdateAction>
,ShoppingListRemoveTextLineItemAction
,ShoppingListUpdateAction
,io.vrap.rmf.base.client.ModelBase
public class ShoppingListRemoveTextLineItemActionImpl
extends Object
implements ShoppingListRemoveTextLineItemAction, io.vrap.rmf.base.client.ModelBase
ShoppingListRemoveTextLineItemAction
-
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.ShoppingListRemoveTextLineItemAction
REMOVE_TEXT_LINE_ITEM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Amount to remove from thequantity
of the TextLineItem.Theid
of the TextLineItem to update.int
hashCode()
void
setQuantity
(Long quantity) Amount to remove from thequantity
of the TextLineItem.void
setTextLineItemId
(String textLineItemId) Theid
of the TextLineItem to update.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.ShoppingListRemoveTextLineItemAction
withShoppingListRemoveTextLineItemAction
Methods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListUpdateAction
withShoppingListUpdateAction
-
Constructor Details
-
ShoppingListRemoveTextLineItemActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ShoppingListUpdateAction>
- Specified by:
getAction
in interfaceShoppingListUpdateAction
- Returns:
- action
-
getTextLineItemId
The
id
of the TextLineItem to update.- Specified by:
getTextLineItemId
in interfaceShoppingListRemoveTextLineItemAction
- Returns:
- textLineItemId
-
getQuantity
Amount to remove from the
quantity
of the TextLineItem. If not set, the TextLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantity
of the TextLineItem, the TextLineItem is removed from the ShoppingList.- Specified by:
getQuantity
in interfaceShoppingListRemoveTextLineItemAction
- Returns:
- quantity
-
setTextLineItemId
Description copied from interface:ShoppingListRemoveTextLineItemAction
The
id
of the TextLineItem to update.- Specified by:
setTextLineItemId
in interfaceShoppingListRemoveTextLineItemAction
- Parameters:
textLineItemId
- value to be set
-
setQuantity
Description copied from interface:ShoppingListRemoveTextLineItemAction
Amount to remove from the
quantity
of the TextLineItem. If not set, the TextLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantity
of the TextLineItem, the TextLineItem is removed from the ShoppingList.- Specified by:
setQuantity
in interfaceShoppingListRemoveTextLineItemAction
- Parameters:
quantity
- value to be set
-
equals
-
hashCode
-