Interface ProductRevertStagedVariantChangesAction
- All Superinterfaces:
ProductUpdateAction,ResourceUpdateAction<ProductUpdateAction>
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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductRevertStagedVariantChangesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductRevertStagedVariantChangesActioncreate builder for ProductRevertStagedVariantChangesAction instancecopyDeep()factory method to create a deep copy of ProductRevertStagedVariantChangesAction@NotNull LongTheidof the ProductVariant to revert.of()factory methodof(ProductRevertStagedVariantChangesAction template) factory method to create a shallow copy ProductRevertStagedVariantChangesActionvoidsetVariantId(Long variantId) Theidof the ProductVariant to revert.static tools.jackson.core.type.TypeReference<ProductRevertStagedVariantChangesAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductRevertStagedVariantChangesAction(Function<ProductRevertStagedVariantChangesAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateActionMethods 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
idof the ProductVariant to revert.- Returns:
- variantId
-
setVariantId
The
idof 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
-
copyDeep
ProductRevertStagedVariantChangesAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
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 tools.jackson.core.type.TypeReference<ProductRevertStagedVariantChangesAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-