Interface ProductSetProductPriceCustomTypeAction
- All Superinterfaces:
ProductUpdateAction,ResourceUpdateAction<ProductUpdateAction>
ProductSetProductPriceCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetProductPriceCustomTypeAction productSetProductPriceCustomTypeAction = ProductSetProductPriceCustomTypeAction.builder()
.priceId("{priceId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSetProductPriceCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSetProductPriceCustomTypeActioncreate builder for ProductSetProductPriceCustomTypeAction instancecopyDeep()factory method to create a deep copy of ProductSetProductPriceCustomTypeAction@Valid FieldContainerSets the Custom Fields fields for the Embedded Price.@NotNull StringTheidof the Embedded Price to update.Iftrue, only the staged Embedded Price is updated.@Valid TypeResourceIdentifiergetType()Defines the Type that extends the Price with Custom Fields.of()factory methodof(ProductSetProductPriceCustomTypeAction template) factory method to create a shallow copy ProductSetProductPriceCustomTypeActionvoidsetFields(FieldContainer fields) Sets the Custom Fields fields for the Embedded Price.voidsetPriceId(String priceId) Theidof the Embedded Price to update.voidIftrue, only the staged Embedded Price is updated.voidDefines the Type that extends the Price with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<ProductSetProductPriceCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductSetProductPriceCustomTypeAction(Function<ProductSetProductPriceCustomTypeAction, 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
-
SET_PRODUCT_PRICE_CUSTOM_TYPE
discriminator value for ProductSetProductPriceCustomTypeAction- See Also:
-
-
Method Details
-
getPriceId
The
idof the Embedded Price to update.- Returns:
- priceId
-
getStaged
Boolean getStaged()If
true, only the staged Embedded Price is updated. Iffalse, both the current and staged Embedded Price is updated.- Returns:
- staged
-
getType
Defines the Type that extends the Price with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Embedded Price.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Embedded Price.
- Returns:
- fields
-
setPriceId
The
idof the Embedded Price to update.- Parameters:
priceId- value to be set
-
setStaged
If
true, only the staged Embedded Price is updated. Iffalse, both the current and staged Embedded Price is updated.- Parameters:
staged- value to be set
-
setType
Defines the Type that extends the Price with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Embedded Price.
- Parameters:
type- value to be set
-
setFields
Sets the Custom Fields fields for the Embedded Price.
- Parameters:
fields- value to be set
-
of
factory method- Returns:
- instance of ProductSetProductPriceCustomTypeAction
-
of
factory method to create a shallow copy ProductSetProductPriceCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductSetProductPriceCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
deepCopy
@Nullable static ProductSetProductPriceCustomTypeAction deepCopy(@Nullable ProductSetProductPriceCustomTypeAction template) factory method to create a deep copy of ProductSetProductPriceCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSetProductPriceCustomTypeAction- Returns:
- builder
-
builder
static ProductSetProductPriceCustomTypeActionBuilder builder(ProductSetProductPriceCustomTypeAction template) create builder for ProductSetProductPriceCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductSetProductPriceCustomTypeAction
default <T> T withProductSetProductPriceCustomTypeAction(Function<ProductSetProductPriceCustomTypeAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductSetProductPriceCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-