Interface ProductSetPriceModeAction
- All Superinterfaces:
ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
Controls whether the Prices of a Product Variant are embedded into the Product or standalone.
Example to create an instance using the builder pattern
ProductSetPriceModeAction productSetPriceModeAction = ProductSetPriceModeAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSetPriceModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSetPriceModeActionbuilder
(ProductSetPriceModeAction template) create builder for ProductSetPriceModeAction instancestatic ProductSetPriceModeAction
deepCopy
(ProductSetPriceModeAction template) factory method to create a deep copy of ProductSetPriceModeActionSpecifies which type of Prices should be used when looking up a price for the Product.static ProductSetPriceModeAction
of()
factory methodstatic ProductSetPriceModeAction
of
(ProductSetPriceModeAction template) factory method to create a shallow copy ProductSetPriceModeActionvoid
setPriceMode
(ProductPriceModeEnum priceMode) Specifies which type of Prices should be used when looking up a price for the Product.static com.fasterxml.jackson.core.type.TypeReference<ProductSetPriceModeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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
-
SET_PRICE_MODE
discriminator value for ProductSetPriceModeAction- See Also:
-
-
Method Details
-
getPriceMode
ProductPriceModeEnum getPriceMode()Specifies which type of Prices should be used when looking up a price for the Product.
- Returns:
- priceMode
-
setPriceMode
Specifies which type of Prices should be used when looking up a price for the Product.
- Parameters:
priceMode
- value to be set
-
of
factory method- Returns:
- instance of ProductSetPriceModeAction
-
of
factory method to create a shallow copy ProductSetPriceModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductSetPriceModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSetPriceModeAction- Returns:
- builder
-
builder
create builder for ProductSetPriceModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSetPriceModeAction
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
-