Interface MyShoppingListRemoveTextLineItemAction
- All Superinterfaces:
MyShoppingListUpdateAction
,ResourceUpdateAction<MyShoppingListUpdateAction>
Example to create an instance using the builder pattern
MyShoppingListRemoveTextLineItemAction myShoppingListRemoveTextLineItemAction = MyShoppingListRemoveTextLineItemAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyShoppingListRemoveTextLineItemAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyShoppingListRemoveTextLineItemActioncreate builder for MyShoppingListRemoveTextLineItemAction instancefactory method to create a deep copy of MyShoppingListRemoveTextLineItemActionAmount to remove from thequantity
of the TextLineItem.Theid
of the TextLineItem to update.Thekey
of the TextLineItem to update.of()
factory methodof
(MyShoppingListRemoveTextLineItemAction template) factory method to create a shallow copy MyShoppingListRemoveTextLineItemActionvoid
setQuantity
(Long quantity) Amount to remove from thequantity
of the TextLineItem.void
setTextLineItemId
(String textLineItemId) Theid
of the TextLineItem to update.void
setTextLineItemKey
(String textLineItemKey) Thekey
of the TextLineItem to update.static com.fasterxml.jackson.core.type.TypeReference<MyShoppingListRemoveTextLineItemAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyShoppingListRemoveTextLineItemAction
(Function<MyShoppingListRemoveTextLineItemAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyShoppingListUpdateAction
getAction, withMyShoppingListUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_TEXT_LINE_ITEM
discriminator value for MyShoppingListRemoveTextLineItemAction- See Also:
-
-
Method Details
-
getTextLineItemId
String getTextLineItemId()The
id
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- textLineItemId
-
getTextLineItemKey
String getTextLineItemKey()The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- textLineItemKey
-
getQuantity
Long 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.- Returns:
- quantity
-
setTextLineItemId
The
id
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
textLineItemId
- value to be set
-
setTextLineItemKey
The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
textLineItemKey
- value to be set
-
setQuantity
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.- Parameters:
quantity
- value to be set
-
of
factory method- Returns:
- instance of MyShoppingListRemoveTextLineItemAction
-
of
factory method to create a shallow copy MyShoppingListRemoveTextLineItemAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyShoppingListRemoveTextLineItemAction deepCopy(@Nullable MyShoppingListRemoveTextLineItemAction template) factory method to create a deep copy of MyShoppingListRemoveTextLineItemAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyShoppingListRemoveTextLineItemAction- Returns:
- builder
-
builder
static MyShoppingListRemoveTextLineItemActionBuilder builder(MyShoppingListRemoveTextLineItemAction template) create builder for MyShoppingListRemoveTextLineItemAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyShoppingListRemoveTextLineItemAction
default <T> T withMyShoppingListRemoveTextLineItemAction(Function<MyShoppingListRemoveTextLineItemAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<MyShoppingListRemoveTextLineItemAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-