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
Example to create an instance using the builder pattern
InventoryEntrySetInventoryLimitsAction inventoryEntrySetInventoryLimitsAction = InventoryEntrySetInventoryLimitsAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds InventoryEntrySetInventoryLimitsAction with checking for non-null required valuesbuilds InventoryEntrySetInventoryLimitsAction without checking for non-null required valuesSets the maximum quantity that can be added to a Cart.Sets the minimum quantity that can be added to a Cart.maxCartQuantity
(Long maxCartQuantity) Sets the maximum quantity that can be added to a Cart.minCartQuantity
(Long minCartQuantity) Sets the minimum quantity that can be added to a Cart.of()
factory method for an instance of InventoryEntrySetInventoryLimitsActionBuilderof
(InventoryEntrySetInventoryLimitsAction template) create builder for InventoryEntrySetInventoryLimitsAction instance
-
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
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
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 interfaceBuilder<InventoryEntrySetInventoryLimitsAction>
- Returns:
- InventoryEntrySetInventoryLimitsAction
-
buildUnchecked
builds InventoryEntrySetInventoryLimitsAction without checking for non-null required values- Returns:
- InventoryEntrySetInventoryLimitsAction
-
of
factory method for an instance of InventoryEntrySetInventoryLimitsActionBuilder- Returns:
- builder
-
of
public static InventoryEntrySetInventoryLimitsActionBuilder of(InventoryEntrySetInventoryLimitsAction template) create builder for InventoryEntrySetInventoryLimitsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-