Interface ShoppingListLineItemAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,ShoppingListMessagePayload
Generated after a successful Add ShoppingListLineItem update action.
Example to create an instance using the builder pattern
ShoppingListLineItemAddedMessagePayload shoppingListLineItemAddedMessagePayload = ShoppingListLineItemAddedMessagePayload.builder()
.lineItem(lineItemBuilder -> lineItemBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShoppingListLineItemAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShoppingListLineItemAddedMessagePayloadcreate builder for ShoppingListLineItemAddedMessagePayload instancefactory method to create a deep copy of ShoppingListLineItemAddedMessagePayload@NotNull @Valid ShoppingListLineItem
Line Item that was added to the ShoppingList.of()
factory methodof
(ShoppingListLineItemAddedMessagePayload template) factory method to create a shallow copy ShoppingListLineItemAddedMessagePayloadvoid
setLineItem
(ShoppingListLineItem lineItem) Line Item that was added to the ShoppingList.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListLineItemAddedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withShoppingListLineItemAddedMessagePayload
(Function<ShoppingListLineItemAddedMessagePayload, T> helper) 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
Methods inherited from interface com.commercetools.api.models.message.ShoppingListMessagePayload
withShoppingListMessagePayload
-
Field Details
-
SHOPPING_LIST_LINE_ITEM_ADDED
discriminator value for ShoppingListLineItemAddedMessagePayload- See Also:
-
-
Method Details
-
getLineItem
Line Item that was added to the ShoppingList.
- Returns:
- lineItem
-
setLineItem
Line Item that was added to the ShoppingList.
- Parameters:
lineItem
- value to be set
-
of
factory method- Returns:
- instance of ShoppingListLineItemAddedMessagePayload
-
of
factory method to create a shallow copy ShoppingListLineItemAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShoppingListLineItemAddedMessagePayload deepCopy(@Nullable ShoppingListLineItemAddedMessagePayload template) factory method to create a deep copy of ShoppingListLineItemAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListLineItemAddedMessagePayload- Returns:
- builder
-
builder
static ShoppingListLineItemAddedMessagePayloadBuilder builder(ShoppingListLineItemAddedMessagePayload template) create builder for ShoppingListLineItemAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListLineItemAddedMessagePayload
default <T> T withShoppingListLineItemAddedMessagePayload(Function<ShoppingListLineItemAddedMessagePayload, 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<ShoppingListLineItemAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-