Interface ProductSetDescriptionAction
- All Superinterfaces:
ProductUpdateAction,ResourceUpdateAction<ProductUpdateAction>
ProductSetDescriptionAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetDescriptionAction productSetDescriptionAction = ProductSetDescriptionAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSetDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSetDescriptionActionbuilder(ProductSetDescriptionAction template) create builder for ProductSetDescriptionAction instancecopyDeep()static ProductSetDescriptionActiondeepCopy(ProductSetDescriptionAction template) factory method to create a deep copy of ProductSetDescriptionAction@Valid LocalizedStringValue to set.Iftrue, only the stageddescriptionis updated.static ProductSetDescriptionActionof()factory methodstatic ProductSetDescriptionActionof(ProductSetDescriptionAction template) factory method to create a shallow copy ProductSetDescriptionActionvoidsetDescription(LocalizedString description) Value to set.voidIftrue, only the stageddescriptionis updated.static com.fasterxml.jackson.core.type.TypeReference<ProductSetDescriptionAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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_DESCRIPTION
discriminator value for ProductSetDescriptionAction- See Also:
-
-
Method Details
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
getStaged
Boolean getStaged()If
true, only the stageddescriptionis updated. Iffalse, both the current and stageddescriptionare updated.- Returns:
- staged
-
setDescription
Value to set. If empty, any existing value will be removed.
- Parameters:
description- value to be set
-
setStaged
If
true, only the stageddescriptionis updated. Iffalse, both the current and stageddescriptionare updated.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of ProductSetDescriptionAction
-
of
factory method to create a shallow copy ProductSetDescriptionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductSetDescriptionAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
deepCopy
@Nullable static ProductSetDescriptionAction deepCopy(@Nullable ProductSetDescriptionAction template) factory method to create a deep copy of ProductSetDescriptionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSetDescriptionAction- Returns:
- builder
-
builder
create builder for ProductSetDescriptionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductSetDescriptionAction
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
-