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)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSelectionProductExcludedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSelectionProductExcludedMessagePayloadcreate builder for ProductSelectionProductExcludedMessagePayload instancecopyDeep()factory method to create a deep copy of ProductSelectionProductExcludedMessagePayload@NotNull @Valid ProductReferenceProduct that was excluded from the Product Selection.@Valid ProductVariantExclusionProduct Variant Exclusion after the Exclude Product update action.of()factory methodfactory method to create a shallow copy ProductSelectionProductExcludedMessagePayloadvoidsetProduct(ProductReference product) Product that was excluded from the Product Selection.voidsetVariantExclusion(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> TwithProductSelectionProductExcludedMessagePayload(Function<ProductSelectionProductExcludedMessagePayload, 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_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
-
copyDeep
- Specified by:
copyDeepin interfaceMessagePayload
-
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
-