Interface ProductDiscountSetDescriptionAction
- All Superinterfaces:
ProductDiscountUpdateAction
,ResourceUpdateAction<ProductDiscountUpdateAction>
ProductDiscountSetDescriptionAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountSetDescriptionAction productDiscountSetDescriptionAction = ProductDiscountSetDescriptionAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductDiscountSetDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductDiscountSetDescriptionActionbuilder
(ProductDiscountSetDescriptionAction template) create builder for ProductDiscountSetDescriptionAction instancedeepCopy
(ProductDiscountSetDescriptionAction template) factory method to create a deep copy of ProductDiscountSetDescriptionAction@Valid LocalizedString
Value to set.of()
factory methodof
(ProductDiscountSetDescriptionAction template) factory method to create a shallow copy ProductDiscountSetDescriptionActionvoid
setDescription
(LocalizedString description) Value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountSetDescriptionAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountUpdateAction
getAction, withProductDiscountUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_DESCRIPTION
discriminator value for ProductDiscountSetDescriptionAction- See Also:
-
-
Method Details
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
setDescription
Value to set. If empty, any existing value will be removed.
- Parameters:
description
- value to be set
-
of
factory method- Returns:
- instance of ProductDiscountSetDescriptionAction
-
of
factory method to create a shallow copy ProductDiscountSetDescriptionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductDiscountSetDescriptionAction deepCopy(@Nullable ProductDiscountSetDescriptionAction template) factory method to create a deep copy of ProductDiscountSetDescriptionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDiscountSetDescriptionAction- Returns:
- builder
-
builder
static ProductDiscountSetDescriptionActionBuilder builder(ProductDiscountSetDescriptionAction template) create builder for ProductDiscountSetDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductDiscountSetDescriptionAction
default <T> T withProductDiscountSetDescriptionAction(Function<ProductDiscountSetDescriptionAction, 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<ProductDiscountSetDescriptionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-