Package com.commercetools.api.models.me
Interface MyShoppingListChangeLineItemQuantityAction
- All Superinterfaces:
MyShoppingListUpdateAction,ResourceUpdateAction<MyShoppingListUpdateAction>
MyShoppingListChangeLineItemQuantityAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListChangeLineItemQuantityAction myShoppingListChangeLineItemQuantityAction = MyShoppingListChangeLineItemQuantityAction.builder()
.quantity(0.3)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyShoppingListChangeLineItemQuantityAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyShoppingListChangeLineItemQuantityActioncreate builder for MyShoppingListChangeLineItemQuantityAction instancecopyDeep()factory method to create a deep copy of MyShoppingListChangeLineItemQuantityActionidof the ShoppingListLineItem to update.keyof the ShoppingListLineItem to update.@NotNull LongNew value to set.of()factory methodof(MyShoppingListChangeLineItemQuantityAction template) factory method to create a shallow copy MyShoppingListChangeLineItemQuantityActionvoidsetLineItemId(String lineItemId) idof the ShoppingListLineItem to update.voidsetLineItemKey(String lineItemKey) keyof the ShoppingListLineItem to update.voidsetQuantity(Long quantity) New value to set.static com.fasterxml.jackson.core.type.TypeReference<MyShoppingListChangeLineItemQuantityAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyShoppingListChangeLineItemQuantityAction(Function<MyShoppingListChangeLineItemQuantityAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyShoppingListUpdateAction
getAction, withMyShoppingListUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_LINE_ITEM_QUANTITY
discriminator value for MyShoppingListChangeLineItemQuantityAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()idof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()keyof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getQuantity
New value to set. If
0, the ShoppingListLineItem is removed from the ShoppingList.- Returns:
- quantity
-
setLineItemId
idof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set
-
setLineItemKey
keyof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemKey- value to be set
-
setQuantity
New value to set. If
0, the ShoppingListLineItem is removed from the ShoppingList.- Parameters:
quantity- value to be set
-
of
factory method- Returns:
- instance of MyShoppingListChangeLineItemQuantityAction
-
of
static MyShoppingListChangeLineItemQuantityAction of(MyShoppingListChangeLineItemQuantityAction template) factory method to create a shallow copy MyShoppingListChangeLineItemQuantityAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyShoppingListChangeLineItemQuantityAction copyDeep()- Specified by:
copyDeepin interfaceMyShoppingListUpdateAction
-
deepCopy
@Nullable static MyShoppingListChangeLineItemQuantityAction deepCopy(@Nullable MyShoppingListChangeLineItemQuantityAction template) factory method to create a deep copy of MyShoppingListChangeLineItemQuantityAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyShoppingListChangeLineItemQuantityAction- Returns:
- builder
-
builder
static MyShoppingListChangeLineItemQuantityActionBuilder builder(MyShoppingListChangeLineItemQuantityAction template) create builder for MyShoppingListChangeLineItemQuantityAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyShoppingListChangeLineItemQuantityAction
default <T> T withMyShoppingListChangeLineItemQuantityAction(Function<MyShoppingListChangeLineItemQuantityAction, 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<MyShoppingListChangeLineItemQuantityAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-