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