Interface ProductSelectionVariantSelectionChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Variant Selection update action.
Example to create an instance using the builder pattern
ProductSelectionVariantSelectionChangedMessagePayload productSelectionVariantSelectionChangedMessagePayload = ProductSelectionVariantSelectionChangedMessagePayload.builder()
.product(productBuilder -> productBuilder)
.oldVariantSelection(oldVariantSelectionBuilder -> oldVariantSelectionBuilder)
.newVariantSelection(newVariantSelectionBuilder -> newVariantSelectionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSelectionVariantSelectionChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionVariantSelectionChangedMessagePayloadcreate builder for ProductSelectionVariantSelectionChangedMessagePayload instancefactory method to create a deep copy of ProductSelectionVariantSelectionChangedMessagePayload@NotNull @Valid ProductVariantSelection
Product Variant Selection after the Set Variant Selection update action.@NotNull @Valid ProductVariantSelection
Product Variant Selection before the Set Variant Selection update action.@NotNull @Valid ProductReference
Product for which the Product Variant Selection changed.of()
factory methodfactory method to create a shallow copy ProductSelectionVariantSelectionChangedMessagePayloadvoid
setNewVariantSelection
(ProductVariantSelection newVariantSelection) Product Variant Selection after the Set Variant Selection update action.void
setOldVariantSelection
(ProductVariantSelection oldVariantSelection) Product Variant Selection before the Set Variant Selection update action.void
setProduct
(ProductReference product) Product for which the Product Variant Selection changed.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionVariantSelectionChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductSelectionVariantSelectionChangedMessagePayload
(Function<ProductSelectionVariantSelectionChangedMessagePayload, 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_VARIANT_SELECTION_CHANGED
discriminator value for ProductSelectionVariantSelectionChangedMessagePayload- See Also:
-
-
Method Details
-
getProduct
Product for which the Product Variant Selection changed.
- Returns:
- product
-
getOldVariantSelection
Product Variant Selection before the Set Variant Selection update action.
- Returns:
- oldVariantSelection
-
getNewVariantSelection
Product Variant Selection after the Set Variant Selection update action.
- Returns:
- newVariantSelection
-
setProduct
Product for which the Product Variant Selection changed.
- Parameters:
product
- value to be set
-
setOldVariantSelection
Product Variant Selection before the Set Variant Selection update action.
- Parameters:
oldVariantSelection
- value to be set
-
setNewVariantSelection
Product Variant Selection after the Set Variant Selection update action.
- Parameters:
newVariantSelection
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionVariantSelectionChangedMessagePayload
-
of
static ProductSelectionVariantSelectionChangedMessagePayload of(ProductSelectionVariantSelectionChangedMessagePayload template) factory method to create a shallow copy ProductSelectionVariantSelectionChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSelectionVariantSelectionChangedMessagePayload deepCopy(@Nullable ProductSelectionVariantSelectionChangedMessagePayload template) factory method to create a deep copy of ProductSelectionVariantSelectionChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionVariantSelectionChangedMessagePayload- Returns:
- builder
-
builder
static ProductSelectionVariantSelectionChangedMessagePayloadBuilder builder(ProductSelectionVariantSelectionChangedMessagePayload template) create builder for ProductSelectionVariantSelectionChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionVariantSelectionChangedMessagePayload
default <T> T withProductSelectionVariantSelectionChangedMessagePayload(Function<ProductSelectionVariantSelectionChangedMessagePayload, 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<ProductSelectionVariantSelectionChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-