Interface CartSetLineItemInventoryModeAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
CartSetLineItemInventoryModeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetLineItemInventoryModeAction cartSetLineItemInventoryModeAction = CartSetLineItemInventoryModeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartSetLineItemInventoryModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartSetLineItemInventoryModeActionbuilder(CartSetLineItemInventoryModeAction template) create builder for CartSetLineItemInventoryModeAction instancecopyDeep()deepCopy(CartSetLineItemInventoryModeAction template) factory method to create a deep copy of CartSetLineItemInventoryModeActionInventory mode specific to the Line Item only, and valid for the entirequantityof the Line Item.idof the LineItem to update.keyof the LineItem to update.of()factory methodof(CartSetLineItemInventoryModeAction template) factory method to create a shallow copy CartSetLineItemInventoryModeActionvoidsetInventoryMode(InventoryMode inventoryMode) Inventory mode specific to the Line Item only, and valid for the entirequantityof the Line Item.voidsetLineItemId(String lineItemId) idof the LineItem to update.voidsetLineItemKey(String lineItemKey) keyof the LineItem to update.static com.fasterxml.jackson.core.type.TypeReference<CartSetLineItemInventoryModeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_LINE_ITEM_INVENTORY_MODE
discriminator value for CartSetLineItemInventoryModeAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getInventoryMode
InventoryMode getInventoryMode()Inventory mode specific to the Line Item only, and valid for the entire
quantityof the Line Item. Set only if the inventory mode should be different from theinventoryModespecified on the Cart.- Returns:
- inventoryMode
-
setLineItemId
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set
-
setLineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemKey- value to be set
-
setInventoryMode
Inventory mode specific to the Line Item only, and valid for the entire
quantityof the Line Item. Set only if the inventory mode should be different from theinventoryModespecified on the Cart.- Parameters:
inventoryMode- value to be set
-
of
factory method- Returns:
- instance of CartSetLineItemInventoryModeAction
-
of
factory method to create a shallow copy CartSetLineItemInventoryModeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartSetLineItemInventoryModeAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartSetLineItemInventoryModeAction deepCopy(@Nullable CartSetLineItemInventoryModeAction template) factory method to create a deep copy of CartSetLineItemInventoryModeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetLineItemInventoryModeAction- Returns:
- builder
-
builder
static CartSetLineItemInventoryModeActionBuilder builder(CartSetLineItemInventoryModeAction template) create builder for CartSetLineItemInventoryModeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetLineItemInventoryModeAction
default <T> T withCartSetLineItemInventoryModeAction(Function<CartSetLineItemInventoryModeAction, 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<CartSetLineItemInventoryModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-