Interface InventoryEntryCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create InventoryEntry request.
Example to create an instance using the builder pattern
InventoryEntryCreatedMessagePayload inventoryEntryCreatedMessagePayload = InventoryEntryCreatedMessagePayload.builder()
.inventoryEntry(inventoryEntryBuilder -> inventoryEntryBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for InventoryEntryCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for InventoryEntryCreatedMessagePayloadbuilder
(InventoryEntryCreatedMessagePayload template) create builder for InventoryEntryCreatedMessagePayload instancedeepCopy
(InventoryEntryCreatedMessagePayload template) factory method to create a deep copy of InventoryEntryCreatedMessagePayload@NotNull @Valid InventoryEntry
InventoryEntry that was created.of()
factory methodof
(InventoryEntryCreatedMessagePayload template) factory method to create a shallow copy InventoryEntryCreatedMessagePayloadvoid
setInventoryEntry
(InventoryEntry inventoryEntry) InventoryEntry that was created.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntryCreatedMessagePayload>
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_CREATED
discriminator value for InventoryEntryCreatedMessagePayload- See Also:
-
-
Method Details
-
getInventoryEntry
InventoryEntry that was created.
- Returns:
- inventoryEntry
-
setInventoryEntry
InventoryEntry that was created.
- Parameters:
inventoryEntry
- value to be set
-
of
factory method- Returns:
- instance of InventoryEntryCreatedMessagePayload
-
of
factory method to create a shallow copy InventoryEntryCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static InventoryEntryCreatedMessagePayload deepCopy(@Nullable InventoryEntryCreatedMessagePayload template) factory method to create a deep copy of InventoryEntryCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntryCreatedMessagePayload- Returns:
- builder
-
builder
static InventoryEntryCreatedMessagePayloadBuilder builder(InventoryEntryCreatedMessagePayload template) create builder for InventoryEntryCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntryCreatedMessagePayload
default <T> T withInventoryEntryCreatedMessagePayload(Function<InventoryEntryCreatedMessagePayload, 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<InventoryEntryCreatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-