Interface ProductVariantAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
- All Known Implementing Classes:
ProductVariantAddedMessagePayloadImpl
Generated after a successful Add ProductVariant update action.
Example to create an instance using the builder pattern
ProductVariantAddedMessagePayload productVariantAddedMessagePayload = ProductVariantAddedMessagePayload.builder()
.variant(variantBuilder -> variantBuilder)
.staged(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductVariantAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantAddedMessagePayloadbuilder
(ProductVariantAddedMessagePayload template) create builder for ProductVariantAddedMessagePayload instancedeepCopy
(ProductVariantAddedMessagePayload template) factory method to create a deep copy of ProductVariantAddedMessagePayload@NotNull Boolean
Whether the update was only applied to the staged Product Projection.@NotNull @Valid ProductVariant
Unique identifier of the Product Variant that was added.of()
factory methodof
(ProductVariantAddedMessagePayload template) factory method to create a shallow copy ProductVariantAddedMessagePayloadvoid
Whether the update was only applied to the staged Product Projection.void
setVariant
(ProductVariant variant) Unique identifier of the Product Variant that was added.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantAddedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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_VARIANT_ADDED
discriminator value for ProductVariantAddedMessagePayload- See Also:
-
-
Method Details
-
getVariant
Unique identifier of the Product Variant that was added.
- Returns:
- variant
-
getStaged
Whether the update was only applied to the staged Product Projection.
- Returns:
- staged
-
setVariant
Unique identifier of the Product Variant that was added.
- Parameters:
variant
- value to be set
-
setStaged
Whether the update was only applied to the staged Product Projection.
- Parameters:
staged
- value to be set
-
of
factory method- Returns:
- instance of ProductVariantAddedMessagePayload
-
of
factory method to create a shallow copy ProductVariantAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductVariantAddedMessagePayload deepCopy(@Nullable ProductVariantAddedMessagePayload template) factory method to create a deep copy of ProductVariantAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantAddedMessagePayload- Returns:
- builder
-
builder
create builder for ProductVariantAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantAddedMessagePayload
default <T> T withProductVariantAddedMessagePayload(Function<ProductVariantAddedMessagePayload, 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<ProductVariantAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-