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

     CartSetLineItemInventoryModeAction cartSetLineItemInventoryModeAction = CartSetLineItemInventoryModeAction.builder()
             .build()
 
  • Constructor Details

    • CartSetLineItemInventoryModeActionBuilder

      public CartSetLineItemInventoryModeActionBuilder()
  • Method Details

    • lineItemId

      id of the LineItem to update. Either lineItemId or lineItemKey is required.

      Parameters:
      lineItemId - value to be set
      Returns:
      Builder
    • lineItemKey

      key of the LineItem to update. Either lineItemId or lineItemKey is required.

      Parameters:
      lineItemKey - value to be set
      Returns:
      Builder
    • 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 the inventoryMode specified on the Cart.

      Parameters:
      inventoryMode - value to be set
      Returns:
      Builder
    • getLineItemId

      @Nullable public String getLineItemId()

      id of the LineItem to update. Either lineItemId or lineItemKey is required.

      Returns:
      lineItemId
    • getLineItemKey

      @Nullable public String getLineItemKey()

      key of the LineItem to update. Either lineItemId or lineItemKey is required.

      Returns:
      lineItemKey
    • getInventoryMode

      @Nullable public InventoryMode 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 the inventoryMode specified on the Cart.

      Returns:
      inventoryMode
    • build

      builds CartSetLineItemInventoryModeAction with checking for non-null required values
      Specified by:
      build in interface Builder<CartSetLineItemInventoryModeAction>
      Returns:
      CartSetLineItemInventoryModeAction
    • buildUnchecked

      public CartSetLineItemInventoryModeAction buildUnchecked()
      builds CartSetLineItemInventoryModeAction without checking for non-null required values
      Returns:
      CartSetLineItemInventoryModeAction
    • of

      factory method for an instance of CartSetLineItemInventoryModeActionBuilder
      Returns:
      builder
    • of

      create builder for CartSetLineItemInventoryModeAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder