Class InventoryEntrySetSafetyStockActionBuilder
java.lang.Object
com.commercetools.api.models.inventory.InventoryEntrySetSafetyStockActionBuilder
- All Implemented Interfaces:
Builder<InventoryEntrySetSafetyStockAction>
public class InventoryEntrySetSafetyStockActionBuilder
extends Object
implements Builder<InventoryEntrySetSafetyStockAction>
InventoryEntrySetSafetyStockActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InventoryEntrySetSafetyStockAction inventoryEntrySetSafetyStockAction = InventoryEntrySetSafetyStockAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds InventoryEntrySetSafetyStockAction with checking for non-null required valuesbuilds InventoryEntrySetSafetyStockAction without checking for non-null required valuesSets the configured inventory stock level for safety stock.of()factory method for an instance of InventoryEntrySetSafetyStockActionBuilderof(InventoryEntrySetSafetyStockAction template) create builder for InventoryEntrySetSafetyStockAction instanceSets the configured inventory stock level for safety stock.
-
Constructor Details
-
InventoryEntrySetSafetyStockActionBuilder
public InventoryEntrySetSafetyStockActionBuilder()
-
-
Method Details
-
quantity
Sets the configured inventory stock level for safety stock. If the value is absent or
nullthe configured inventory stock level is removed.- Parameters:
quantity- value to be set- Returns:
- Builder
-
getQuantity
Sets the configured inventory stock level for safety stock. If the value is absent or
nullthe configured inventory stock level is removed.- Returns:
- quantity
-
build
builds InventoryEntrySetSafetyStockAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<InventoryEntrySetSafetyStockAction>- Returns:
- InventoryEntrySetSafetyStockAction
-
buildUnchecked
builds InventoryEntrySetSafetyStockAction without checking for non-null required values- Returns:
- InventoryEntrySetSafetyStockAction
-
of
factory method for an instance of InventoryEntrySetSafetyStockActionBuilder- Returns:
- builder
-
of
public static InventoryEntrySetSafetyStockActionBuilder of(InventoryEntrySetSafetyStockAction template) create builder for InventoryEntrySetSafetyStockAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-