Class ShoppingListChangeLineItemQuantityActionImpl
java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListChangeLineItemQuantityActionImpl
- All Implemented Interfaces:
ResourceUpdateAction<ShoppingListUpdateAction>
,ShoppingListChangeLineItemQuantityAction
,ShoppingListUpdateAction
,io.vrap.rmf.base.client.ModelBase
public class ShoppingListChangeLineItemQuantityActionImpl
extends Object
implements ShoppingListChangeLineItemQuantityAction, io.vrap.rmf.base.client.ModelBase
ShoppingListChangeLineItemQuantityAction
-
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.ShoppingListChangeLineItemQuantityAction
CHANGE_LINE_ITEM_QUANTITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Theid
of the ShoppingListLineItem to update.New value to set.int
hashCode()
void
setLineItemId
(String lineItemId) Theid
of the ShoppingListLineItem to update.void
setQuantity
(Long quantity) New value to set.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.ShoppingListChangeLineItemQuantityAction
withShoppingListChangeLineItemQuantityAction
Methods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListUpdateAction
withShoppingListUpdateAction
-
Constructor Details
-
ShoppingListChangeLineItemQuantityActionImpl
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.- Specified by:
getLineItemId
in interfaceShoppingListChangeLineItemQuantityAction
- Returns:
- lineItemId
-
getQuantity
New value to set. If
0
, the ShoppingListLineItem is removed from the ShoppingList.- Specified by:
getQuantity
in interfaceShoppingListChangeLineItemQuantityAction
- Returns:
- quantity
-
setLineItemId
Description copied from interface:ShoppingListChangeLineItemQuantityAction
The
id
of the ShoppingListLineItem to update.- Specified by:
setLineItemId
in interfaceShoppingListChangeLineItemQuantityAction
- Parameters:
lineItemId
- value to be set
-
setQuantity
Description copied from interface:ShoppingListChangeLineItemQuantityAction
New value to set. If
0
, the ShoppingListLineItem is removed from the ShoppingList.- Specified by:
setQuantity
in interfaceShoppingListChangeLineItemQuantityAction
- Parameters:
quantity
- value to be set
-
equals
-
hashCode
-