Interface ProductSelectionProductRemovedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Remove Product update action.
Example to create an instance using the builder pattern
ProductSelectionProductRemovedMessagePayload productSelectionProductRemovedMessagePayload = ProductSelectionProductRemovedMessagePayload.builder()
.product(productBuilder -> productBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSelectionProductRemovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionProductRemovedMessagePayloadcreate builder for ProductSelectionProductRemovedMessagePayload instancefactory method to create a deep copy of ProductSelectionProductRemovedMessagePayload@NotNull @Valid ProductReference
Product that was removed from the Product Selection.of()
factory methodfactory method to create a shallow copy ProductSelectionProductRemovedMessagePayloadvoid
setProduct
(ProductReference product) Product that was removed from the Product Selection.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionProductRemovedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductSelectionProductRemovedMessagePayload
(Function<ProductSelectionProductRemovedMessagePayload, 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
-
Field Details
-
PRODUCT_SELECTION_PRODUCT_REMOVED
discriminator value for ProductSelectionProductRemovedMessagePayload- See Also:
-
-
Method Details
-
getProduct
Product that was removed from the Product Selection.
- Returns:
- product
-
setProduct
Product that was removed from the Product Selection.
- Parameters:
product
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionProductRemovedMessagePayload
-
of
static ProductSelectionProductRemovedMessagePayload of(ProductSelectionProductRemovedMessagePayload template) factory method to create a shallow copy ProductSelectionProductRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSelectionProductRemovedMessagePayload deepCopy(@Nullable ProductSelectionProductRemovedMessagePayload template) factory method to create a deep copy of ProductSelectionProductRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionProductRemovedMessagePayload- Returns:
- builder
-
builder
static ProductSelectionProductRemovedMessagePayloadBuilder builder(ProductSelectionProductRemovedMessagePayload template) create builder for ProductSelectionProductRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionProductRemovedMessagePayload
default <T> T withProductSelectionProductRemovedMessagePayload(Function<ProductSelectionProductRemovedMessagePayload, 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<ProductSelectionProductRemovedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-