Interface ProductAddedToCategoryMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Add to Category update action.
Example to create an instance using the builder pattern
ProductAddedToCategoryMessagePayload productAddedToCategoryMessagePayload = ProductAddedToCategoryMessagePayload.builder()
.category(categoryBuilder -> categoryBuilder)
.staged(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductAddedToCategoryMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductAddedToCategoryMessagePayloadbuilder
(ProductAddedToCategoryMessagePayload template) create builder for ProductAddedToCategoryMessagePayload instancedeepCopy
(ProductAddedToCategoryMessagePayload template) factory method to create a deep copy of ProductAddedToCategoryMessagePayload@NotNull @Valid CategoryReference
Category the Product was added to.@NotNull Boolean
Whether the update was only applied to the staged Product Projection.of()
factory methodof
(ProductAddedToCategoryMessagePayload template) factory method to create a shallow copy ProductAddedToCategoryMessagePayloadvoid
setCategory
(CategoryReference category) Category the Product was added to.void
Whether the update was only applied to the staged Product Projection.static com.fasterxml.jackson.core.type.TypeReference<ProductAddedToCategoryMessagePayload>
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_ADDED_TO_CATEGORY
discriminator value for ProductAddedToCategoryMessagePayload- See Also:
-
-
Method Details
-
getCategory
Category the Product was added to.
- Returns:
- category
-
getStaged
Whether the update was only applied to the staged Product Projection.
- Returns:
- staged
-
setCategory
Category the Product was added to.
- Parameters:
category
- 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 ProductAddedToCategoryMessagePayload
-
of
factory method to create a shallow copy ProductAddedToCategoryMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductAddedToCategoryMessagePayload deepCopy(@Nullable ProductAddedToCategoryMessagePayload template) factory method to create a deep copy of ProductAddedToCategoryMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductAddedToCategoryMessagePayload- Returns:
- builder
-
builder
static ProductAddedToCategoryMessagePayloadBuilder builder(ProductAddedToCategoryMessagePayload template) create builder for ProductAddedToCategoryMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductAddedToCategoryMessagePayload
default <T> T withProductAddedToCategoryMessagePayload(Function<ProductAddedToCategoryMessagePayload, 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<ProductAddedToCategoryMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-