Interface ProductTailoringSetDescriptionAction
- All Superinterfaces:
ProductTailoringUpdateAction
Generates the ProductTailoringDescriptionSet Message.
Example to create an instance using the builder pattern
ProductTailoringSetDescriptionAction productTailoringSetDescriptionAction = ProductTailoringSetDescriptionAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTailoringSetDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTailoringSetDescriptionActionbuilder
(ProductTailoringSetDescriptionAction template) create builder for ProductTailoringSetDescriptionAction instancedeepCopy
(ProductTailoringSetDescriptionAction template) factory method to create a deep copy of ProductTailoringSetDescriptionAction@Valid LocalizedString
Value to set.Iftrue
, only the stageddescription
is updated.of()
factory methodof
(ProductTailoringSetDescriptionAction template) factory method to create a shallow copy ProductTailoringSetDescriptionActionvoid
setDescription
(LocalizedString description) Value to set.void
Iftrue
, only the stageddescription
is updated.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringSetDescriptionAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_tailoring.ProductTailoringUpdateAction
getAction, withProductTailoringUpdateAction
-
Field Details
-
SET_DESCRIPTION
discriminator value for ProductTailoringSetDescriptionAction- 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 stageddescription
is updated. Iffalse
, both the current and stageddescription
are 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 stageddescription
is updated. Iffalse
, both the current and stageddescription
are updated.- Parameters:
staged
- value to be set
-
of
factory method- Returns:
- instance of ProductTailoringSetDescriptionAction
-
of
factory method to create a shallow copy ProductTailoringSetDescriptionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTailoringSetDescriptionAction deepCopy(@Nullable ProductTailoringSetDescriptionAction template) factory method to create a deep copy of ProductTailoringSetDescriptionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringSetDescriptionAction- Returns:
- builder
-
builder
static ProductTailoringSetDescriptionActionBuilder builder(ProductTailoringSetDescriptionAction template) create builder for ProductTailoringSetDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringSetDescriptionAction
default <T> T withProductTailoringSetDescriptionAction(Function<ProductTailoringSetDescriptionAction, 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<ProductTailoringSetDescriptionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-