Interface ProductSelectionProductExcludedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Exclude Product update action.
Example to create an instance using the builder pattern
ProductSelectionProductExcludedMessagePayload productSelectionProductExcludedMessagePayload = ProductSelectionProductExcludedMessagePayload.builder()
.product(productBuilder -> productBuilder)
.variantExclusion(variantExclusionBuilder -> variantExclusionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSelectionProductExcludedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionProductExcludedMessagePayloadcreate builder for ProductSelectionProductExcludedMessagePayload instancefactory method to create a deep copy of ProductSelectionProductExcludedMessagePayload@NotNull @Valid ProductReference
Product that was excluded from the Product Selection.@NotNull @Valid ProductVariantExclusion
Product Variant Exclusion after the Exclude Product update action.of()
factory methodfactory method to create a shallow copy ProductSelectionProductExcludedMessagePayloadvoid
setProduct
(ProductReference product) Product that was excluded from the Product Selection.void
setVariantExclusion
(ProductVariantExclusion variantExclusion) Product Variant Exclusion after the Exclude Product update action.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionProductExcludedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductSelectionProductExcludedMessagePayload
(Function<ProductSelectionProductExcludedMessagePayload, 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_EXCLUDED
discriminator value for ProductSelectionProductExcludedMessagePayload- See Also:
-
-
Method Details
-
getProduct
Product that was excluded from the Product Selection.
- Returns:
- product
-
getVariantExclusion
Product Variant Exclusion after the Exclude Product update action.
- Returns:
- variantExclusion
-
setProduct
Product that was excluded from the Product Selection.
- Parameters:
product
- value to be set
-
setVariantExclusion
Product Variant Exclusion after the Exclude Product update action.
- Parameters:
variantExclusion
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionProductExcludedMessagePayload
-
of
static ProductSelectionProductExcludedMessagePayload of(ProductSelectionProductExcludedMessagePayload template) factory method to create a shallow copy ProductSelectionProductExcludedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSelectionProductExcludedMessagePayload deepCopy(@Nullable ProductSelectionProductExcludedMessagePayload template) factory method to create a deep copy of ProductSelectionProductExcludedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionProductExcludedMessagePayload- Returns:
- builder
-
builder
static ProductSelectionProductExcludedMessagePayloadBuilder builder(ProductSelectionProductExcludedMessagePayload template) create builder for ProductSelectionProductExcludedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionProductExcludedMessagePayload
default <T> T withProductSelectionProductExcludedMessagePayload(Function<ProductSelectionProductExcludedMessagePayload, 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<ProductSelectionProductExcludedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-