Interface ProductRevertStagedVariantChangesAction
- All Superinterfaces:
ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
- All Known Implementing Classes:
ProductRevertStagedVariantChangesActionImpl
Reverts the staged version of a ProductVariant to the current version.
Example to create an instance using the builder pattern
ProductRevertStagedVariantChangesAction productRevertStagedVariantChangesAction = ProductRevertStagedVariantChangesAction.builder()
.variantId(0.3)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductRevertStagedVariantChangesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductRevertStagedVariantChangesActioncreate builder for ProductRevertStagedVariantChangesAction instancefactory method to create a deep copy of ProductRevertStagedVariantChangesAction@NotNull Long
Theid
of the ProductVariant to revert.of()
factory methodof
(ProductRevertStagedVariantChangesAction template) factory method to create a shallow copy ProductRevertStagedVariantChangesActionvoid
setVariantId
(Long variantId) Theid
of the ProductVariant to revert.static com.fasterxml.jackson.core.type.TypeReference<ProductRevertStagedVariantChangesAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductRevertStagedVariantChangesAction
(Function<ProductRevertStagedVariantChangesAction, T> helper) 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_VARIANT_CHANGES
discriminator value for ProductRevertStagedVariantChangesAction- See Also:
-
-
Method Details
-
getVariantId
The
id
of the ProductVariant to revert.- Returns:
- variantId
-
setVariantId
The
id
of the ProductVariant to revert.- Parameters:
variantId
- value to be set
-
of
factory method- Returns:
- instance of ProductRevertStagedVariantChangesAction
-
of
factory method to create a shallow copy ProductRevertStagedVariantChangesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductRevertStagedVariantChangesAction deepCopy(@Nullable ProductRevertStagedVariantChangesAction template) factory method to create a deep copy of ProductRevertStagedVariantChangesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductRevertStagedVariantChangesAction- Returns:
- builder
-
builder
static ProductRevertStagedVariantChangesActionBuilder builder(ProductRevertStagedVariantChangesAction template) create builder for ProductRevertStagedVariantChangesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductRevertStagedVariantChangesAction
default <T> T withProductRevertStagedVariantChangesAction(Function<ProductRevertStagedVariantChangesAction, 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<ProductRevertStagedVariantChangesAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-