Interface ProductSetProductPriceCustomFieldAction
- All Superinterfaces:
ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
Example to create an instance using the builder pattern
ProductSetProductPriceCustomFieldAction productSetProductPriceCustomFieldAction = ProductSetProductPriceCustomFieldAction.builder()
.priceId("{priceId}")
.name("{name}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSetProductPriceCustomFieldAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSetProductPriceCustomFieldActioncreate builder for ProductSetProductPriceCustomFieldAction instancefactory method to create a deep copy of ProductSetProductPriceCustomFieldAction@NotNull String
getName()
Name of the Custom Field.@NotNull String
Theid
of the Embedded Price to update.Iftrue
, only the staged Embedded Price Custom Field is updated.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.of()
factory methodof
(ProductSetProductPriceCustomFieldAction template) factory method to create a shallow copy ProductSetProductPriceCustomFieldActionofUnsetStaged
(String name, String priceId, Boolean staged) void
Name of the Custom Field.void
setPriceId
(String priceId) Theid
of the Embedded Price to update.void
Iftrue
, only the staged Embedded Price Custom Field is updated.void
Ifvalue
is absent ornull
, this field will be removed if it exists.static com.fasterxml.jackson.core.type.TypeReference<ProductSetProductPriceCustomFieldAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductSetProductPriceCustomFieldAction
(Function<ProductSetProductPriceCustomFieldAction, 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_FIELD
discriminator value for ProductSetProductPriceCustomFieldAction- 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 Custom Field is updated. Iffalse
, both the current and staged Embedded Price Custom Field are updated.- Returns:
- staged
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
Object getValue()If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Returns:
- value
-
setPriceId
The
id
of the Embedded Price to update.- Parameters:
priceId
- value to be set
-
setStaged
If
true
, only the staged Embedded Price Custom Field is updated. Iffalse
, both the current and staged Embedded Price Custom Field are updated.- Parameters:
staged
- value to be set
-
setName
Name of the Custom Field.
- Parameters:
name
- value to be set
-
setValue
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of ProductSetProductPriceCustomFieldAction
-
of
factory method to create a shallow copy ProductSetProductPriceCustomFieldAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSetProductPriceCustomFieldAction deepCopy(@Nullable ProductSetProductPriceCustomFieldAction template) factory method to create a deep copy of ProductSetProductPriceCustomFieldAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSetProductPriceCustomFieldAction- Returns:
- builder
-
builder
static ProductSetProductPriceCustomFieldActionBuilder builder(ProductSetProductPriceCustomFieldAction template) create builder for ProductSetProductPriceCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSetProductPriceCustomFieldAction
default <T> T withProductSetProductPriceCustomFieldAction(Function<ProductSetProductPriceCustomFieldAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
ofUnsetStaged
static ProductSetProductPriceCustomFieldAction ofUnsetStaged(String name, String priceId, Boolean staged) -
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductSetProductPriceCustomFieldAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-