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