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 String
discriminator value for ProductSetProductPriceCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSetProductPriceCustomTypeActioncreate builder for ProductSetProductPriceCustomTypeAction instancefactory method to create a deep copy of ProductSetProductPriceCustomTypeAction@Valid FieldContainer
Sets the Custom Fields fields for the Embedded Price.@NotNull String
Theid
of the Embedded Price to update.Iftrue
, only the staged Embedded Price is updated.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends the Price with Custom Fields.of()
factory methodof
(ProductSetProductPriceCustomTypeAction template) factory method to create a shallow copy ProductSetProductPriceCustomTypeActionvoid
setFields
(FieldContainer fields) Sets the Custom Fields fields for the Embedded Price.void
setPriceId
(String priceId) Theid
of the Embedded Price to update.void
Iftrue
, only the staged Embedded Price is updated.void
Defines 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> T
withProductSetProductPriceCustomTypeAction
(Function<ProductSetProductPriceCustomTypeAction, T> helper) 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_PRODUCT_PRICE_CUSTOM_TYPE
discriminator value for ProductSetProductPriceCustomTypeAction- See Also:
-
-
Method Details
-
getPriceId
The
id
of 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
id
of 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
-
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
-