Interface ProductRemoveFromCategoryAction
- All Superinterfaces:
ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
Produces the ProductRemovedFromCategory Message.
Example to create an instance using the builder pattern
ProductRemoveFromCategoryAction productRemoveFromCategoryAction = ProductRemoveFromCategoryAction.builder()
.category(categoryBuilder -> categoryBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductRemoveFromCategoryAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductRemoveFromCategoryActionbuilder
(ProductRemoveFromCategoryAction template) create builder for ProductRemoveFromCategoryAction instancedeepCopy
(ProductRemoveFromCategoryAction template) factory method to create a deep copy of ProductRemoveFromCategoryAction@NotNull @Valid CategoryResourceIdentifier
The Category to remove.Iftrue
, only the stagedcategories
andcategoryOrderHints
are removed.of()
factory methodof
(ProductRemoveFromCategoryAction template) factory method to create a shallow copy ProductRemoveFromCategoryActionvoid
setCategory
(CategoryResourceIdentifier category) The Category to remove.void
Iftrue
, only the stagedcategories
andcategoryOrderHints
are removed.static com.fasterxml.jackson.core.type.TypeReference<ProductRemoveFromCategoryAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_FROM_CATEGORY
discriminator value for ProductRemoveFromCategoryAction- See Also:
-
-
Method Details
-
getCategory
The Category to remove.
- Returns:
- category
-
getStaged
Boolean getStaged()If
true
, only the stagedcategories
andcategoryOrderHints
are removed. Iffalse
, both the current and stagedcategories
andcategoryOrderHints
are removed.- Returns:
- staged
-
setCategory
The Category to remove.
- Parameters:
category
- value to be set
-
setStaged
If
true
, only the stagedcategories
andcategoryOrderHints
are removed. Iffalse
, both the current and stagedcategories
andcategoryOrderHints
are removed.- Parameters:
staged
- value to be set
-
of
factory method- Returns:
- instance of ProductRemoveFromCategoryAction
-
of
factory method to create a shallow copy ProductRemoveFromCategoryAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductRemoveFromCategoryAction deepCopy(@Nullable ProductRemoveFromCategoryAction template) factory method to create a deep copy of ProductRemoveFromCategoryAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductRemoveFromCategoryAction- Returns:
- builder
-
builder
create builder for ProductRemoveFromCategoryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductRemoveFromCategoryAction
default <T> T withProductRemoveFromCategoryAction(Function<ProductRemoveFromCategoryAction, 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<ProductRemoveFromCategoryAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-