Interface ProductRemovePriceAction
- All Superinterfaces:
ProductUpdateAction,ResourceUpdateAction<ProductUpdateAction>
ProductRemovePriceAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductRemovePriceAction productRemovePriceAction = ProductRemovePriceAction.builder()
.priceId("{priceId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductRemovePriceAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductRemovePriceActionbuilder(ProductRemovePriceAction template) create builder for ProductRemovePriceAction instancecopyDeep()static ProductRemovePriceActiondeepCopy(ProductRemovePriceAction template) factory method to create a deep copy of ProductRemovePriceAction@NotNull StringTheidof the Embedded Price to remove.Iftrue, only the staged Embedded Price is removed.static ProductRemovePriceActionof()factory methodstatic ProductRemovePriceActionof(ProductRemovePriceAction template) factory method to create a shallow copy ProductRemovePriceActionvoidsetPriceId(String priceId) Theidof the Embedded Price to remove.voidIftrue, only the staged Embedded Price is removed.static com.fasterxml.jackson.core.type.TypeReference<ProductRemovePriceAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_PRICE
discriminator value for ProductRemovePriceAction- See Also:
-
-
Method Details
-
getPriceId
The
idof the Embedded Price to remove.- Returns:
- priceId
-
getStaged
Boolean getStaged()If
true, only the staged Embedded Price is removed. Iffalse, both the current and staged Embedded Price are removed.- Returns:
- staged
-
setPriceId
The
idof the Embedded Price to remove.- Parameters:
priceId- value to be set
-
setStaged
If
true, only the staged Embedded Price is removed. Iffalse, both the current and staged Embedded Price are removed.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of ProductRemovePriceAction
-
of
factory method to create a shallow copy ProductRemovePriceAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductRemovePriceAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
deepCopy
factory method to create a deep copy of ProductRemovePriceAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductRemovePriceAction- Returns:
- builder
-
builder
create builder for ProductRemovePriceAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductRemovePriceAction
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
-