Interface ProductSelectionProductAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Add Product update action.
Example to create an instance using the builder pattern
ProductSelectionProductAddedMessagePayload productSelectionProductAddedMessagePayload = ProductSelectionProductAddedMessagePayload.builder()
.product(productBuilder -> productBuilder)
.variantSelection(variantSelectionBuilder -> variantSelectionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSelectionProductAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionProductAddedMessagePayloadcreate builder for ProductSelectionProductAddedMessagePayload instancefactory method to create a deep copy of ProductSelectionProductAddedMessagePayload@NotNull @Valid ProductReference
Product that was added to the Product Selection.@NotNull @Valid ProductVariantSelection
Product Variant Selection after the Add Product update action.of()
factory methodof
(ProductSelectionProductAddedMessagePayload template) factory method to create a shallow copy ProductSelectionProductAddedMessagePayloadvoid
setProduct
(ProductReference product) Product that was added to the Product Selection.void
setVariantSelection
(ProductVariantSelection variantSelection) Product Variant Selection after the Add Product update action.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionProductAddedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductSelectionProductAddedMessagePayload
(Function<ProductSelectionProductAddedMessagePayload, 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_ADDED
discriminator value for ProductSelectionProductAddedMessagePayload- See Also:
-
-
Method Details
-
getProduct
Product that was added to the Product Selection.
- Returns:
- product
-
getVariantSelection
Product Variant Selection after the Add Product update action.
- Returns:
- variantSelection
-
setProduct
Product that was added to the Product Selection.
- Parameters:
product
- value to be set
-
setVariantSelection
Product Variant Selection after the Add Product update action.
- Parameters:
variantSelection
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionProductAddedMessagePayload
-
of
static ProductSelectionProductAddedMessagePayload of(ProductSelectionProductAddedMessagePayload template) factory method to create a shallow copy ProductSelectionProductAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSelectionProductAddedMessagePayload deepCopy(@Nullable ProductSelectionProductAddedMessagePayload template) factory method to create a deep copy of ProductSelectionProductAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionProductAddedMessagePayload- Returns:
- builder
-
builder
static ProductSelectionProductAddedMessagePayloadBuilder builder(ProductSelectionProductAddedMessagePayload template) create builder for ProductSelectionProductAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionProductAddedMessagePayload
default <T> T withProductSelectionProductAddedMessagePayload(Function<ProductSelectionProductAddedMessagePayload, 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<ProductSelectionProductAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-