Interface ProductRevertStagedChangesAction
- All Superinterfaces:
ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
- All Known Implementing Classes:
ProductRevertStagedChangesActionImpl
Reverts the staged version of a Product to the current version. Produces the ProductRevertedStagedChanges Message.
Example to create an instance using the builder pattern
ProductRevertStagedChangesAction productRevertStagedChangesAction = ProductRevertStagedChangesAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductRevertStagedChangesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductRevertStagedChangesActionbuilder
(ProductRevertStagedChangesAction template) create builder for ProductRevertStagedChangesAction instancedeepCopy
(ProductRevertStagedChangesAction template) factory method to create a deep copy of ProductRevertStagedChangesActionof()
factory methodof
(ProductRevertStagedChangesAction template) factory method to create a shallow copy ProductRevertStagedChangesActionstatic com.fasterxml.jackson.core.type.TypeReference<ProductRevertStagedChangesAction>
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
-
REVERT_STAGED_CHANGES
discriminator value for ProductRevertStagedChangesAction- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of ProductRevertStagedChangesAction
-
of
factory method to create a shallow copy ProductRevertStagedChangesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductRevertStagedChangesAction deepCopy(@Nullable ProductRevertStagedChangesAction template) factory method to create a deep copy of ProductRevertStagedChangesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductRevertStagedChangesAction- Returns:
- builder
-
builder
create builder for ProductRevertStagedChangesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductRevertStagedChangesAction
default <T> T withProductRevertStagedChangesAction(Function<ProductRevertStagedChangesAction, 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<ProductRevertStagedChangesAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-