Interface VariantRemoveStagedChangesAction
- All Superinterfaces:
VariantUpdateAction
Removes all staged changes from the Variant, only the current data remains. Generates the VariantStagedChangesRemoved Message.
Example to create an instance using the builder pattern
VariantRemoveStagedChangesAction variantRemoveStagedChangesAction = VariantRemoveStagedChangesAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantRemoveStagedChangesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantRemoveStagedChangesActionbuilder(VariantRemoveStagedChangesAction template) create builder for VariantRemoveStagedChangesAction instancecopyDeep()deepCopy(VariantRemoveStagedChangesAction template) factory method to create a deep copy of VariantRemoveStagedChangesActionof()factory methodof(VariantRemoveStagedChangesAction template) factory method to create a shallow copy VariantRemoveStagedChangesActionstatic tools.jackson.core.type.TypeReference<VariantRemoveStagedChangesAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.variant.VariantUpdateAction
getAction, withVariantUpdateAction
-
Field Details
-
REMOVE_STAGED_CHANGES
discriminator value for VariantRemoveStagedChangesAction- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of VariantRemoveStagedChangesAction
-
of
factory method to create a shallow copy VariantRemoveStagedChangesAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantRemoveStagedChangesAction copyDeep()- Specified by:
copyDeepin interfaceVariantUpdateAction
-
deepCopy
@Nullable static VariantRemoveStagedChangesAction deepCopy(@Nullable VariantRemoveStagedChangesAction template) factory method to create a deep copy of VariantRemoveStagedChangesAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantRemoveStagedChangesAction- Returns:
- builder
-
builder
create builder for VariantRemoveStagedChangesAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantRemoveStagedChangesAction
default <T> T withVariantRemoveStagedChangesAction(Function<VariantRemoveStagedChangesAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-