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)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSelectionProductAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSelectionProductAddedMessagePayloadcreate builder for ProductSelectionProductAddedMessagePayload instancecopyDeep()factory method to create a deep copy of ProductSelectionProductAddedMessagePayload@NotNull @Valid ProductReferenceProduct that was added to the Product Selection.@Valid ProductVariantSelectionProduct Variant Selection after the Add Product update action.of()factory methodof(ProductSelectionProductAddedMessagePayload template) factory method to create a shallow copy ProductSelectionProductAddedMessagePayloadvoidsetProduct(ProductReference product) Product that was added to the Product Selection.voidsetVariantSelection(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> TwithProductSelectionProductAddedMessagePayload(Function<ProductSelectionProductAddedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods 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
-
copyDeep
ProductSelectionProductAddedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
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
-