Interface ShoppingListLineItemRemovedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,ShoppingListMessagePayload
Generated after a successful Remove ShoppingListLineItem update action.
Example to create an instance using the builder pattern
ShoppingListLineItemRemovedMessagePayload shoppingListLineItemRemovedMessagePayload = ShoppingListLineItemRemovedMessagePayload.builder()
.lineItem(lineItemBuilder -> lineItemBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShoppingListLineItemRemovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShoppingListLineItemRemovedMessagePayloadcreate builder for ShoppingListLineItemRemovedMessagePayload instancefactory method to create a deep copy of ShoppingListLineItemRemovedMessagePayload@NotNull @Valid ShoppingListLineItem
Line Item that was removed from the ShoppingList.of()
factory methodof
(ShoppingListLineItemRemovedMessagePayload template) factory method to create a shallow copy ShoppingListLineItemRemovedMessagePayloadvoid
setLineItem
(ShoppingListLineItem lineItem) Line Item that was removed from the ShoppingList.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListLineItemRemovedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withShoppingListLineItemRemovedMessagePayload
(Function<ShoppingListLineItemRemovedMessagePayload, 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_REMOVED
discriminator value for ShoppingListLineItemRemovedMessagePayload- See Also:
-
-
Method Details
-
getLineItem
Line Item that was removed from the ShoppingList.
- Returns:
- lineItem
-
setLineItem
Line Item that was removed from the ShoppingList.
- Parameters:
lineItem
- value to be set
-
of
factory method- Returns:
- instance of ShoppingListLineItemRemovedMessagePayload
-
of
static ShoppingListLineItemRemovedMessagePayload of(ShoppingListLineItemRemovedMessagePayload template) factory method to create a shallow copy ShoppingListLineItemRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShoppingListLineItemRemovedMessagePayload deepCopy(@Nullable ShoppingListLineItemRemovedMessagePayload template) factory method to create a deep copy of ShoppingListLineItemRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListLineItemRemovedMessagePayload- Returns:
- builder
-
builder
static ShoppingListLineItemRemovedMessagePayloadBuilder builder(ShoppingListLineItemRemovedMessagePayload template) create builder for ShoppingListLineItemRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListLineItemRemovedMessagePayload
default <T> T withShoppingListLineItemRemovedMessagePayload(Function<ShoppingListLineItemRemovedMessagePayload, 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<ShoppingListLineItemRemovedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-