Interface InventoryEntryDeletedMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Delete InventoryEntry request.
Example to create an instance using the builder pattern
InventoryEntryDeletedMessage inventoryEntryDeletedMessage = InventoryEntryDeletedMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.sku("{sku}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for InventoryEntryDeletedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for InventoryEntryDeletedMessagebuilder
(InventoryEntryDeletedMessage template) create builder for InventoryEntryDeletedMessage instancestatic InventoryEntryDeletedMessage
deepCopy
(InventoryEntryDeletedMessage template) factory method to create a deep copy of InventoryEntryDeletedMessage@NotNull String
getSku()
Thesku
of the InventoryEntry that was deleted.@Valid ChannelReference
Reference to the Channel where the InventoryEntry was deleted.static InventoryEntryDeletedMessage
of()
factory methodstatic InventoryEntryDeletedMessage
of
(InventoryEntryDeletedMessage template) factory method to create a shallow copy InventoryEntryDeletedMessagevoid
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<InventoryEntryDeletedMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
INVENTORY_ENTRY_DELETED
discriminator value for InventoryEntryDeletedMessage- 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 InventoryEntryDeletedMessage
-
of
factory method to create a shallow copy InventoryEntryDeletedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static InventoryEntryDeletedMessage deepCopy(@Nullable InventoryEntryDeletedMessage template) factory method to create a deep copy of InventoryEntryDeletedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntryDeletedMessage- Returns:
- builder
-
builder
create builder for InventoryEntryDeletedMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntryDeletedMessage
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-