Interface VariantPublishedMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Publish update action.
Example to create an instance using the builder pattern
VariantPublishedMessagePayload variantPublishedMessagePayload = VariantPublishedMessagePayload.builder()
.product(productBuilder -> productBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantPublishedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantPublishedMessagePayloadbuilder(VariantPublishedMessagePayload template) create builder for VariantPublishedMessagePayload instancecopyDeep()deepCopy(VariantPublishedMessagePayload template) factory method to create a deep copy of VariantPublishedMessagePayload@NotNull @Valid ProductReferenceReference to the Product containing the Variant.of()factory methodof(VariantPublishedMessagePayload template) factory method to create a shallow copy VariantPublishedMessagePayloadvoidsetProduct(ProductReference product) Reference to the Product containing the Variant.static tools.jackson.core.type.TypeReference<VariantPublishedMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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
-
VARIANT_PUBLISHED
discriminator value for VariantPublishedMessagePayload- See Also:
-
-
Method Details
-
getProduct
Reference to the Product containing the Variant.
- Returns:
- product
-
setProduct
Reference to the Product containing the Variant.
- Parameters:
product- value to be set
-
of
factory method- Returns:
- instance of VariantPublishedMessagePayload
-
of
factory method to create a shallow copy VariantPublishedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantPublishedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static VariantPublishedMessagePayload deepCopy(@Nullable VariantPublishedMessagePayload template) factory method to create a deep copy of VariantPublishedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantPublishedMessagePayload- Returns:
- builder
-
builder
create builder for VariantPublishedMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantPublishedMessagePayload
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-