Class InventoryEntrySetInventoryLimitsActionBuilder

java.lang.Object
com.commercetools.api.models.inventory.InventoryEntrySetInventoryLimitsActionBuilder
All Implemented Interfaces:
Builder<InventoryEntrySetInventoryLimitsAction>

public class InventoryEntrySetInventoryLimitsActionBuilder extends Object implements Builder<InventoryEntrySetInventoryLimitsAction>
InventoryEntrySetInventoryLimitsActionBuilder
Example to create an instance using the builder pattern

     InventoryEntrySetInventoryLimitsAction inventoryEntrySetInventoryLimitsAction = InventoryEntrySetInventoryLimitsAction.builder()
             .build()
 
  • Constructor Details

    • InventoryEntrySetInventoryLimitsActionBuilder

      public InventoryEntrySetInventoryLimitsActionBuilder()
  • Method Details

    • minCartQuantity

      public InventoryEntrySetInventoryLimitsActionBuilder minCartQuantity(@Nullable Long minCartQuantity)

      Sets the minimum quantity that can be added to a Cart. If the value is absent or null the inventory limit is removed.

      Parameters:
      minCartQuantity - value to be set
      Returns:
      Builder
    • maxCartQuantity

      public InventoryEntrySetInventoryLimitsActionBuilder maxCartQuantity(@Nullable Long maxCartQuantity)

      Sets the maximum quantity that can be added to a Cart. If the value is absent or null the inventory limit is removed.

      Parameters:
      maxCartQuantity - value to be set
      Returns:
      Builder
    • getMinCartQuantity

      @Nullable public Long getMinCartQuantity()

      Sets the minimum quantity that can be added to a Cart. If the value is absent or null the inventory limit is removed.

      Returns:
      minCartQuantity
    • getMaxCartQuantity

      @Nullable public Long getMaxCartQuantity()

      Sets the maximum quantity that can be added to a Cart. If the value is absent or null the inventory limit is removed.

      Returns:
      maxCartQuantity
    • build

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

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

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

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