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.Thekey
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.void
setTextLineItemKey
(String textLineItemKey) Thekey
of the TextLineItem to update.toString()
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
public 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. EitherlineItemId
orlineItemKey
is required.- Specified by:
getTextLineItemId
in interfaceShoppingListChangeTextLineItemQuantityAction
- Returns:
- textLineItemId
-
getTextLineItemKey
The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getTextLineItemKey
in interfaceShoppingListChangeTextLineItemQuantityAction
- Returns:
- textLineItemKey
-
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. EitherlineItemId
orlineItemKey
is required.- Specified by:
setTextLineItemId
in interfaceShoppingListChangeTextLineItemQuantityAction
- Parameters:
textLineItemId
- value to be set
-
setTextLineItemKey
Description copied from interface:ShoppingListChangeTextLineItemQuantityAction
The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setTextLineItemKey
in interfaceShoppingListChangeTextLineItemQuantityAction
- Parameters:
textLineItemKey
- 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
public int hashCode() -
toString
-