Interface InventoryEntryDeletedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Delete InventoryEntry request.
Example to create an instance using the builder pattern
InventoryEntryDeletedMessagePayload inventoryEntryDeletedMessagePayload = InventoryEntryDeletedMessagePayload.builder()
.sku("{sku}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for InventoryEntryDeletedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for InventoryEntryDeletedMessagePayloadbuilder
(InventoryEntryDeletedMessagePayload template) create builder for InventoryEntryDeletedMessagePayload instancedeepCopy
(InventoryEntryDeletedMessagePayload template) factory method to create a deep copy of InventoryEntryDeletedMessagePayload@NotNull String
getSku()
Thesku
of the InventoryEntry that was deleted.@Valid ChannelReference
Reference to the Channel where the InventoryEntry was deleted.of()
factory methodof
(InventoryEntryDeletedMessagePayload template) factory method to create a shallow copy InventoryEntryDeletedMessagePayloadvoid
Thesku
of the InventoryEntry that was deleted.void
setSupplyChannel
(ChannelReference supplyChannel) Reference to the Channel where the InventoryEntry was deleted.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntryDeletedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
INVENTORY_ENTRY_DELETED
discriminator value for InventoryEntryDeletedMessagePayload- See Also:
-
-
Method Details
-
getSku
The
sku
of the InventoryEntry that was deleted.- Returns:
- sku
-
getSupplyChannel
Reference to the Channel where the InventoryEntry was deleted.
- Returns:
- supplyChannel
-
setSku
The
sku
of the InventoryEntry that was deleted.- Parameters:
sku
- value to be set
-
setSupplyChannel
Reference to the Channel where the InventoryEntry was deleted.
- Parameters:
supplyChannel
- value to be set
-
of
factory method- Returns:
- instance of InventoryEntryDeletedMessagePayload
-
of
factory method to create a shallow copy InventoryEntryDeletedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static InventoryEntryDeletedMessagePayload deepCopy(@Nullable InventoryEntryDeletedMessagePayload template) factory method to create a deep copy of InventoryEntryDeletedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntryDeletedMessagePayload- Returns:
- builder
-
builder
static InventoryEntryDeletedMessagePayloadBuilder builder(InventoryEntryDeletedMessagePayload template) create builder for InventoryEntryDeletedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntryDeletedMessagePayload
default <T> T withInventoryEntryDeletedMessagePayload(Function<InventoryEntryDeletedMessagePayload, 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<InventoryEntryDeletedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-