Interface ProductSetPriceKeyAction
- All Superinterfaces:
ProductUpdateAction,ResourceUpdateAction<ProductUpdateAction>
Sets the key of an Embedded Price. Produces the ProductPriceKeySet Message.
Example to create an instance using the builder pattern
ProductSetPriceKeyAction productSetPriceKeyAction = ProductSetPriceKeyAction.builder()
.priceId("{priceId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSetPriceKeyAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSetPriceKeyActionbuilder(ProductSetPriceKeyAction template) create builder for ProductSetPriceKeyAction instancecopyDeep()static ProductSetPriceKeyActiondeepCopy(ProductSetPriceKeyAction template) factory method to create a deep copy of ProductSetPriceKeyActiongetKey()Value to set.@NotNull StringTheidof the Price to set the key.Iftrue, only the staged Embedded Price is updated.static ProductSetPriceKeyActionof()factory methodstatic ProductSetPriceKeyActionof(ProductSetPriceKeyAction template) factory method to create a shallow copy ProductSetPriceKeyActionvoidValue to set.voidsetPriceId(String priceId) Theidof the Price to set the key.voidIftrue, only the staged Embedded Price is updated.static com.fasterxml.jackson.core.type.TypeReference<ProductSetPriceKeyAction>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
-
SET_PRICE_KEY
discriminator value for ProductSetPriceKeyAction- See Also:
-
-
Method Details
-
getPriceId
The
idof the Price to set the key.- Returns:
- priceId
-
getStaged
Boolean getStaged()If
true, only the staged Embedded Price is updated. Iffalse, both the current and staged Embedded Price are updated.- Returns:
- staged
-
getKey
String getKey()Value to set. If empty, any existing value will be removed.
- Returns:
- key
-
setPriceId
The
idof the Price to set the key.- Parameters:
priceId- value to be set
-
setStaged
If
true, only the staged Embedded Price is updated. Iffalse, both the current and staged Embedded Price are updated.- Parameters:
staged- value to be set
-
setKey
Value to set. If empty, any existing value will be removed.
- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of ProductSetPriceKeyAction
-
of
factory method to create a shallow copy ProductSetPriceKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductSetPriceKeyAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
deepCopy
factory method to create a deep copy of ProductSetPriceKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSetPriceKeyAction- Returns:
- builder
-
builder
create builder for ProductSetPriceKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductSetPriceKeyAction
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
-