Class CartSetLineItemInventoryModeActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartSetLineItemInventoryModeActionBuilder
- All Implemented Interfaces:
Builder<CartSetLineItemInventoryModeAction>
public class CartSetLineItemInventoryModeActionBuilder
extends Object
implements Builder<CartSetLineItemInventoryModeAction>
CartSetLineItemInventoryModeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetLineItemInventoryModeAction cartSetLineItemInventoryModeAction = CartSetLineItemInventoryModeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetLineItemInventoryModeAction with checking for non-null required valuesbuilds CartSetLineItemInventoryModeAction without checking for non-null required valuesInventory mode specific to the Line Item only, and valid for the entirequantity
of the Line Item.id
of the LineItem to update.key
of the LineItem to update.inventoryMode
(InventoryMode inventoryMode) Inventory mode specific to the Line Item only, and valid for the entirequantity
of the Line Item.lineItemId
(String lineItemId) id
of the LineItem to update.lineItemKey
(String lineItemKey) key
of the LineItem to update.of()
factory method for an instance of CartSetLineItemInventoryModeActionBuilderof
(CartSetLineItemInventoryModeAction template) create builder for CartSetLineItemInventoryModeAction instance
-
Constructor Details
-
CartSetLineItemInventoryModeActionBuilder
public CartSetLineItemInventoryModeActionBuilder()
-
-
Method Details
-
lineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
inventoryMode
public CartSetLineItemInventoryModeActionBuilder inventoryMode(@Nullable InventoryMode inventoryMode) Inventory mode specific to the Line Item only, and valid for the entire
quantity
of the Line Item. Set only if the inventory mode should be different from theinventoryMode
specified on the Cart.- Parameters:
inventoryMode
- value to be set- Returns:
- Builder
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getInventoryMode
Inventory mode specific to the Line Item only, and valid for the entire
quantity
of the Line Item. Set only if the inventory mode should be different from theinventoryMode
specified on the Cart.- Returns:
- inventoryMode
-
build
builds CartSetLineItemInventoryModeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartSetLineItemInventoryModeAction>
- Returns:
- CartSetLineItemInventoryModeAction
-
buildUnchecked
builds CartSetLineItemInventoryModeAction without checking for non-null required values- Returns:
- CartSetLineItemInventoryModeAction
-
of
factory method for an instance of CartSetLineItemInventoryModeActionBuilder- Returns:
- builder
-
of
public static CartSetLineItemInventoryModeActionBuilder of(CartSetLineItemInventoryModeAction template) create builder for CartSetLineItemInventoryModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-