Package com.commercetools.api.models.me
Interface MyShoppingListChangeTextLineItemQuantityAction
- All Superinterfaces:
MyShoppingListUpdateAction
,ResourceUpdateAction<MyShoppingListUpdateAction>
MyShoppingListChangeTextLineItemQuantityAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListChangeTextLineItemQuantityAction myShoppingListChangeTextLineItemQuantityAction = MyShoppingListChangeTextLineItemQuantityAction.builder()
.quantity(0.3)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyShoppingListChangeTextLineItemQuantityAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyShoppingListChangeTextLineItemQuantityActioncreate builder for MyShoppingListChangeTextLineItemQuantityAction instancefactory method to create a deep copy of MyShoppingListChangeTextLineItemQuantityAction@NotNull Long
New value to set.Theid
of the TextLineItem to update.Thekey
of the TextLineItem to update.of()
factory methodfactory method to create a shallow copy MyShoppingListChangeTextLineItemQuantityActionvoid
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.static com.fasterxml.jackson.core.type.TypeReference<MyShoppingListChangeTextLineItemQuantityAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyShoppingListChangeTextLineItemQuantityAction
(Function<MyShoppingListChangeTextLineItemQuantityAction, 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
-
CHANGE_TEXT_LINE_ITEM_QUANTITY
discriminator value for MyShoppingListChangeTextLineItemQuantityAction- 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
New value to set. If
0
, 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
New value to set. If
0
, the TextLineItem is removed from the ShoppingList.- Parameters:
quantity
- value to be set
-
of
factory method- Returns:
- instance of MyShoppingListChangeTextLineItemQuantityAction
-
of
static MyShoppingListChangeTextLineItemQuantityAction of(MyShoppingListChangeTextLineItemQuantityAction template) factory method to create a shallow copy MyShoppingListChangeTextLineItemQuantityAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyShoppingListChangeTextLineItemQuantityAction deepCopy(@Nullable MyShoppingListChangeTextLineItemQuantityAction template) factory method to create a deep copy of MyShoppingListChangeTextLineItemQuantityAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyShoppingListChangeTextLineItemQuantityAction- Returns:
- builder
-
builder
static MyShoppingListChangeTextLineItemQuantityActionBuilder builder(MyShoppingListChangeTextLineItemQuantityAction template) create builder for MyShoppingListChangeTextLineItemQuantityAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyShoppingListChangeTextLineItemQuantityAction
default <T> T withMyShoppingListChangeTextLineItemQuantityAction(Function<MyShoppingListChangeTextLineItemQuantityAction, 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<MyShoppingListChangeTextLineItemQuantityAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-