Interface ShoppingListLineItemAddedMessage
- All Superinterfaces:
BaseResource,DomainResource<Message>,Identifiable<Message>,Message,ShoppingListMessage,Versioned<Message>
Generated after a successful Add ShoppingListLineItem update action.
Example to create an instance using the builder pattern
ShoppingListLineItemAddedMessage shoppingListLineItemAddedMessage = ShoppingListLineItemAddedMessage.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)
.lineItem(lineItemBuilder -> lineItemBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShoppingListLineItemAddedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShoppingListLineItemAddedMessagebuilder(ShoppingListLineItemAddedMessage template) create builder for ShoppingListLineItemAddedMessage instancecopyDeep()deepCopy(ShoppingListLineItemAddedMessage template) factory method to create a deep copy of ShoppingListLineItemAddedMessage@NotNull @Valid ShoppingListLineItemLine Item that was added to the ShoppingList.of()factory methodof(ShoppingListLineItemAddedMessage template) factory method to create a shallow copy ShoppingListLineItemAddedMessagevoidsetLineItem(ShoppingListLineItem lineItem) Line Item that was added to the ShoppingList.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListLineItemAddedMessage>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods 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, withMessageMethods inherited from interface com.commercetools.api.models.message.ShoppingListMessage
withShoppingListMessage
-
Field Details
-
SHOPPING_LIST_LINE_ITEM_ADDED
discriminator value for ShoppingListLineItemAddedMessage- 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 ShoppingListLineItemAddedMessage
-
of
factory method to create a shallow copy ShoppingListLineItemAddedMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShoppingListLineItemAddedMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage- Specified by:
copyDeepin interfaceShoppingListMessage
-
deepCopy
@Nullable static ShoppingListLineItemAddedMessage deepCopy(@Nullable ShoppingListLineItemAddedMessage template) factory method to create a deep copy of ShoppingListLineItemAddedMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListLineItemAddedMessage- Returns:
- builder
-
builder
create builder for ShoppingListLineItemAddedMessage instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListLineItemAddedMessage
default <T> T withShoppingListLineItemAddedMessage(Function<ShoppingListLineItemAddedMessage, 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<ShoppingListLineItemAddedMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-