Interface InventoryEntrySetSafetyStockAction
- All Superinterfaces:
InventoryEntryUpdateAction,ResourceUpdateAction<InventoryEntryUpdateAction>
Sets the safety stock level for a specific InventoryEntry. When the stock reaches this level, a corresponding InventoryEntrySafetyStock Message is generated.
Example to create an instance using the builder pattern
InventoryEntrySetSafetyStockAction inventoryEntrySetSafetyStockAction = InventoryEntrySetSafetyStockAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for InventoryEntrySetSafetyStockAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for InventoryEntrySetSafetyStockActionbuilder(InventoryEntrySetSafetyStockAction template) create builder for InventoryEntrySetSafetyStockAction instancecopyDeep()deepCopy(InventoryEntrySetSafetyStockAction template) factory method to create a deep copy of InventoryEntrySetSafetyStockActionSets the configured inventory stock level for safety stock.of()factory methodof(InventoryEntrySetSafetyStockAction template) factory method to create a shallow copy InventoryEntrySetSafetyStockActionvoidsetQuantity(Integer quantity) Sets the configured inventory stock level for safety stock.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntrySetSafetyStockAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.inventory.InventoryEntryUpdateAction
getAction, withInventoryEntryUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_SAFETY_STOCK
discriminator value for InventoryEntrySetSafetyStockAction- See Also:
-
-
Method Details
-
getQuantity
Integer 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
-
setQuantity
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
-
of
factory method- Returns:
- instance of InventoryEntrySetSafetyStockAction
-
of
factory method to create a shallow copy InventoryEntrySetSafetyStockAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
InventoryEntrySetSafetyStockAction copyDeep()- Specified by:
copyDeepin interfaceInventoryEntryUpdateAction
-
deepCopy
@Nullable static InventoryEntrySetSafetyStockAction deepCopy(@Nullable InventoryEntrySetSafetyStockAction template) factory method to create a deep copy of InventoryEntrySetSafetyStockAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntrySetSafetyStockAction- Returns:
- builder
-
builder
static InventoryEntrySetSafetyStockActionBuilder builder(InventoryEntrySetSafetyStockAction template) create builder for InventoryEntrySetSafetyStockAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntrySetSafetyStockAction
default <T> T withInventoryEntrySetSafetyStockAction(Function<InventoryEntrySetSafetyStockAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<InventoryEntrySetSafetyStockAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-