Class InventoryEntryDeletedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.InventoryEntryDeletedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<InventoryEntryDeletedMessagePayload>
public class InventoryEntryDeletedMessagePayloadBuilder
extends Object
implements Builder<InventoryEntryDeletedMessagePayload>
InventoryEntryDeletedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InventoryEntryDeletedMessagePayload inventoryEntryDeletedMessagePayload = InventoryEntryDeletedMessagePayload.builder()
.sku("{sku}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds InventoryEntryDeletedMessagePayload with checking for non-null required valuesbuilds InventoryEntryDeletedMessagePayload without checking for non-null required valuesgetSku()
Thesku
of the InventoryEntry that was deleted.Reference to the Channel where the InventoryEntry was deleted.of()
factory method for an instance of InventoryEntryDeletedMessagePayloadBuilderof
(InventoryEntryDeletedMessagePayload template) create builder for InventoryEntryDeletedMessagePayload instanceThesku
of the InventoryEntry that was deleted.supplyChannel
(ChannelReference supplyChannel) Reference to the Channel where the InventoryEntry was deleted.Reference to the Channel where the InventoryEntry was deleted.Reference to the Channel where the InventoryEntry was deleted.
-
Constructor Details
-
InventoryEntryDeletedMessagePayloadBuilder
public InventoryEntryDeletedMessagePayloadBuilder()
-
-
Method Details
-
sku
The
sku
of the InventoryEntry that was deleted.- Parameters:
sku
- value to be set- Returns:
- Builder
-
supplyChannel
public InventoryEntryDeletedMessagePayloadBuilder supplyChannel(Function<ChannelReferenceBuilder, ChannelReferenceBuilder> builder) Reference to the Channel where the InventoryEntry was deleted.
- Parameters:
builder
- function to build the supplyChannel value- Returns:
- Builder
-
withSupplyChannel
public InventoryEntryDeletedMessagePayloadBuilder withSupplyChannel(Function<ChannelReferenceBuilder, ChannelReference> builder) Reference to the Channel where the InventoryEntry was deleted.
- Parameters:
builder
- function to build the supplyChannel value- Returns:
- Builder
-
supplyChannel
public InventoryEntryDeletedMessagePayloadBuilder supplyChannel(@Nullable ChannelReference supplyChannel) Reference to the Channel where the InventoryEntry was deleted.
- Parameters:
supplyChannel
- value to be set- Returns:
- Builder
-
getSku
The
sku
of the InventoryEntry that was deleted.- Returns:
- sku
-
getSupplyChannel
Reference to the Channel where the InventoryEntry was deleted.
- Returns:
- supplyChannel
-
build
builds InventoryEntryDeletedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<InventoryEntryDeletedMessagePayload>
- Returns:
- InventoryEntryDeletedMessagePayload
-
buildUnchecked
builds InventoryEntryDeletedMessagePayload without checking for non-null required values- Returns:
- InventoryEntryDeletedMessagePayload
-
of
factory method for an instance of InventoryEntryDeletedMessagePayloadBuilder- Returns:
- builder
-
of
public static InventoryEntryDeletedMessagePayloadBuilder of(InventoryEntryDeletedMessagePayload template) create builder for InventoryEntryDeletedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-