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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSetProductPriceCustomFieldAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSetProductPriceCustomFieldActioncreate builder for ProductSetProductPriceCustomFieldAction instancecopyDeep()factory method to create a deep copy of ProductSetProductPriceCustomFieldAction@NotNull StringgetName()Name of the Custom Field.@NotNull StringTheidof the Embedded Price to update.Iftrue, only the staged Embedded Price Custom Field is updated.getValue()Ifvalueis 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) voidName of the Custom Field.voidsetPriceId(String priceId) Theidof the Embedded Price to update.voidIftrue, only the staged Embedded Price Custom Field is updated.voidIfvalueis 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> TwithProductSetProductPriceCustomFieldAction(Function<ProductSetProductPriceCustomFieldAction, 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_FIELD
discriminator value for ProductSetProductPriceCustomFieldAction- See Also:
-
-
Method Details
-
getPriceId
The
idof 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
valueis absent ornull, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Returns:
- value
-
setPriceId
The
idof 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
valueis absent ornull, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalueis 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
-
copyDeep
ProductSetProductPriceCustomFieldAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
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
-