Interface ProductSelectionVariantExclusionChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Variant Exclusion update action.
Example to create an instance using the builder pattern
ProductSelectionVariantExclusionChangedMessagePayload productSelectionVariantExclusionChangedMessagePayload = ProductSelectionVariantExclusionChangedMessagePayload.builder()
.product(productBuilder -> productBuilder)
.oldVariantExclusion(oldVariantExclusionBuilder -> oldVariantExclusionBuilder)
.newVariantExclusion(newVariantExclusionBuilder -> newVariantExclusionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSelectionVariantExclusionChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionVariantExclusionChangedMessagePayloadcreate builder for ProductSelectionVariantExclusionChangedMessagePayload instancefactory method to create a deep copy of ProductSelectionVariantExclusionChangedMessagePayload@NotNull @Valid ProductVariantExclusion
Product Variant Exclusion after the Set Variant Exclusion update action.@NotNull @Valid ProductVariantExclusion
Product Variant Exclusion before the Set Variant Exclusion update action.@NotNull @Valid ProductReference
Product for which the Product Variant Exclusion changed.of()
factory methodfactory method to create a shallow copy ProductSelectionVariantExclusionChangedMessagePayloadvoid
setNewVariantExclusion
(ProductVariantExclusion newVariantExclusion) Product Variant Exclusion after the Set Variant Exclusion update action.void
setOldVariantExclusion
(ProductVariantExclusion oldVariantExclusion) Product Variant Exclusion before the Set Variant Exclusion update action.void
setProduct
(ProductReference product) Product for which the Product Variant Exclusion changed.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionVariantExclusionChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductSelectionVariantExclusionChangedMessagePayload
(Function<ProductSelectionVariantExclusionChangedMessagePayload, 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_EXCLUSION_CHANGED
discriminator value for ProductSelectionVariantExclusionChangedMessagePayload- See Also:
-
-
Method Details
-
getProduct
Product for which the Product Variant Exclusion changed.
- Returns:
- product
-
getOldVariantExclusion
Product Variant Exclusion before the Set Variant Exclusion update action.
- Returns:
- oldVariantExclusion
-
getNewVariantExclusion
Product Variant Exclusion after the Set Variant Exclusion update action.
- Returns:
- newVariantExclusion
-
setProduct
Product for which the Product Variant Exclusion changed.
- Parameters:
product
- value to be set
-
setOldVariantExclusion
Product Variant Exclusion before the Set Variant Exclusion update action.
- Parameters:
oldVariantExclusion
- value to be set
-
setNewVariantExclusion
Product Variant Exclusion after the Set Variant Exclusion update action.
- Parameters:
newVariantExclusion
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionVariantExclusionChangedMessagePayload
-
of
static ProductSelectionVariantExclusionChangedMessagePayload of(ProductSelectionVariantExclusionChangedMessagePayload template) factory method to create a shallow copy ProductSelectionVariantExclusionChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSelectionVariantExclusionChangedMessagePayload deepCopy(@Nullable ProductSelectionVariantExclusionChangedMessagePayload template) factory method to create a deep copy of ProductSelectionVariantExclusionChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionVariantExclusionChangedMessagePayload- Returns:
- builder
-
builder
static ProductSelectionVariantExclusionChangedMessagePayloadBuilder builder(ProductSelectionVariantExclusionChangedMessagePayload template) create builder for ProductSelectionVariantExclusionChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionVariantExclusionChangedMessagePayload
default <T> T withProductSelectionVariantExclusionChangedMessagePayload(Function<ProductSelectionVariantExclusionChangedMessagePayload, 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<ProductSelectionVariantExclusionChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-