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)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSelectionVariantSelectionChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSelectionVariantSelectionChangedMessagePayloadcreate builder for ProductSelectionVariantSelectionChangedMessagePayload instancecopyDeep()factory method to create a deep copy of ProductSelectionVariantSelectionChangedMessagePayload@Valid ProductVariantSelectionProduct Variant Selection after the Set Variant Selection update action.@Valid ProductVariantSelectionProduct Variant Selection before the Set Variant Selection update action.@NotNull @Valid ProductReferenceProduct for which the Product Variant Selection changed.of()factory methodfactory method to create a shallow copy ProductSelectionVariantSelectionChangedMessagePayloadvoidsetNewVariantSelection(ProductVariantSelection newVariantSelection) Product Variant Selection after the Set Variant Selection update action.voidsetOldVariantSelection(ProductVariantSelection oldVariantSelection) Product Variant Selection before the Set Variant Selection update action.voidsetProduct(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> TwithProductSelectionVariantSelectionChangedMessagePayload(Function<ProductSelectionVariantSelectionChangedMessagePayload, 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_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
-
copyDeep
- Specified by:
copyDeepin interfaceMessagePayload
-
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
-