Class InventoryEntryOutOfStockMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.InventoryEntryOutOfStockMessagePayloadBuilder
- All Implemented Interfaces:
Builder<InventoryEntryOutOfStockMessagePayload>
public class InventoryEntryOutOfStockMessagePayloadBuilder
extends Object
implements Builder<InventoryEntryOutOfStockMessagePayload>
InventoryEntryOutOfStockMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InventoryEntryOutOfStockMessagePayload inventoryEntryOutOfStockMessagePayload = InventoryEntryOutOfStockMessagePayload.builder()
.sku("{sku}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds InventoryEntryOutOfStockMessagePayload with checking for non-null required valuesbuilds InventoryEntryOutOfStockMessagePayload without checking for non-null required valuesgetSku()of()factory method for an instance of InventoryEntryOutOfStockMessagePayloadBuilderof(InventoryEntryOutOfStockMessagePayload template) create builder for InventoryEntryOutOfStockMessagePayload instancesupplyChannel(ChannelReference supplyChannel)
-
Constructor Details
-
InventoryEntryOutOfStockMessagePayloadBuilder
public InventoryEntryOutOfStockMessagePayloadBuilder()
-
-
Method Details
-
sku
The
skuof the InventoryEntry whosequantityOnStockwent to 0.- Parameters:
sku- value to be set- Returns:
- Builder
-
supplyChannel
public InventoryEntryOutOfStockMessagePayloadBuilder supplyChannel(Function<ChannelReferenceBuilder, ChannelReferenceBuilder> builder) Reference to the Channel where the InventoryEntry quantity on stock went to 0.
- Parameters:
builder- function to build the supplyChannel value- Returns:
- Builder
-
withSupplyChannel
public InventoryEntryOutOfStockMessagePayloadBuilder withSupplyChannel(Function<ChannelReferenceBuilder, ChannelReference> builder) Reference to the Channel where the InventoryEntry quantity on stock went to 0.
- Parameters:
builder- function to build the supplyChannel value- Returns:
- Builder
-
supplyChannel
public InventoryEntryOutOfStockMessagePayloadBuilder supplyChannel(@Nullable ChannelReference supplyChannel) Reference to the Channel where the InventoryEntry quantity on stock went to 0.
- Parameters:
supplyChannel- value to be set- Returns:
- Builder
-
getSku
The
skuof the InventoryEntry whosequantityOnStockwent to 0.- Returns:
- sku
-
getSupplyChannel
Reference to the Channel where the InventoryEntry quantity on stock went to 0.
- Returns:
- supplyChannel
-
build
builds InventoryEntryOutOfStockMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<InventoryEntryOutOfStockMessagePayload>- Returns:
- InventoryEntryOutOfStockMessagePayload
-
buildUnchecked
builds InventoryEntryOutOfStockMessagePayload without checking for non-null required values- Returns:
- InventoryEntryOutOfStockMessagePayload
-
of
factory method for an instance of InventoryEntryOutOfStockMessagePayloadBuilder- Returns:
- builder
-
of
public static InventoryEntryOutOfStockMessagePayloadBuilder of(InventoryEntryOutOfStockMessagePayload template) create builder for InventoryEntryOutOfStockMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-