Class InventoryEntrySafetyStockMessagePayloadBuilder
- All Implemented Interfaces:
Builder<InventoryEntrySafetyStockMessagePayload>
Example to create an instance using the builder pattern
InventoryEntrySafetyStockMessagePayload inventoryEntrySafetyStockMessagePayload = InventoryEntrySafetyStockMessagePayload.builder()
.sku("{sku}")
.quantityOnStock(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds InventoryEntrySafetyStockMessagePayload with checking for non-null required valuesbuilds InventoryEntrySafetyStockMessagePayload without checking for non-null required valuesThequantityOnStockof the InventoryEntry at the time the safety stock level was reached.getSku()Reference to the Channel where the InventoryEntryquantityOnStockreached the configured safety stock level.of()factory method for an instance of InventoryEntrySafetyStockMessagePayloadBuilderof(InventoryEntrySafetyStockMessagePayload template) create builder for InventoryEntrySafetyStockMessagePayload instancequantityOnStock(Integer quantityOnStock) ThequantityOnStockof the InventoryEntry at the time the safety stock level was reached.supplyChannel(ChannelReference supplyChannel) Reference to the Channel where the InventoryEntryquantityOnStockreached the configured safety stock level.Reference to the Channel where the InventoryEntryquantityOnStockreached the configured safety stock level.Reference to the Channel where the InventoryEntryquantityOnStockreached the configured safety stock level.
-
Constructor Details
-
InventoryEntrySafetyStockMessagePayloadBuilder
public InventoryEntrySafetyStockMessagePayloadBuilder()
-
-
Method Details
-
sku
The
skuof the InventoryEntry whosequantityOnStockreached the configured safety stock level.- Parameters:
sku- value to be set- Returns:
- Builder
-
quantityOnStock
The
quantityOnStockof the InventoryEntry at the time the safety stock level was reached.- Parameters:
quantityOnStock- value to be set- Returns:
- Builder
-
supplyChannel
public InventoryEntrySafetyStockMessagePayloadBuilder supplyChannel(Function<ChannelReferenceBuilder, ChannelReferenceBuilder> builder) Reference to the Channel where the InventoryEntry
quantityOnStockreached the configured safety stock level.- Parameters:
builder- function to build the supplyChannel value- Returns:
- Builder
-
withSupplyChannel
public InventoryEntrySafetyStockMessagePayloadBuilder withSupplyChannel(Function<ChannelReferenceBuilder, ChannelReference> builder) Reference to the Channel where the InventoryEntry
quantityOnStockreached the configured safety stock level.- Parameters:
builder- function to build the supplyChannel value- Returns:
- Builder
-
supplyChannel
public InventoryEntrySafetyStockMessagePayloadBuilder supplyChannel(@Nullable ChannelReference supplyChannel) Reference to the Channel where the InventoryEntry
quantityOnStockreached the configured safety stock level.- Parameters:
supplyChannel- value to be set- Returns:
- Builder
-
getSku
The
skuof the InventoryEntry whosequantityOnStockreached the configured safety stock level.- Returns:
- sku
-
getQuantityOnStock
The
quantityOnStockof the InventoryEntry at the time the safety stock level was reached.- Returns:
- quantityOnStock
-
getSupplyChannel
Reference to the Channel where the InventoryEntry
quantityOnStockreached the configured safety stock level.- Returns:
- supplyChannel
-
build
builds InventoryEntrySafetyStockMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<InventoryEntrySafetyStockMessagePayload>- Returns:
- InventoryEntrySafetyStockMessagePayload
-
buildUnchecked
builds InventoryEntrySafetyStockMessagePayload without checking for non-null required values- Returns:
- InventoryEntrySafetyStockMessagePayload
-
of
factory method for an instance of InventoryEntrySafetyStockMessagePayloadBuilder- Returns:
- builder
-
of
public static InventoryEntrySafetyStockMessagePayloadBuilder of(InventoryEntrySafetyStockMessagePayload template) create builder for InventoryEntrySafetyStockMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-