Interface CartDiscountSetDescriptionAction
- All Superinterfaces:
CartDiscountUpdateAction
,ResourceUpdateAction<CartDiscountUpdateAction>
CartDiscountSetDescriptionAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountSetDescriptionAction cartDiscountSetDescriptionAction = CartDiscountSetDescriptionAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountSetDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountSetDescriptionActionbuilder
(CartDiscountSetDescriptionAction template) create builder for CartDiscountSetDescriptionAction instancedeepCopy
(CartDiscountSetDescriptionAction template) factory method to create a deep copy of CartDiscountSetDescriptionAction@Valid LocalizedString
Value to set.of()
factory methodof
(CartDiscountSetDescriptionAction template) factory method to create a shallow copy CartDiscountSetDescriptionActionvoid
setDescription
(LocalizedString description) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountSetDescriptionAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
getAction, withCartDiscountUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_DESCRIPTION
discriminator value for CartDiscountSetDescriptionAction- 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 CartDiscountSetDescriptionAction
-
of
factory method to create a shallow copy CartDiscountSetDescriptionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartDiscountSetDescriptionAction deepCopy(@Nullable CartDiscountSetDescriptionAction template) factory method to create a deep copy of CartDiscountSetDescriptionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountSetDescriptionAction- Returns:
- builder
-
builder
create builder for CartDiscountSetDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountSetDescriptionAction
default <T> T withCartDiscountSetDescriptionAction(Function<CartDiscountSetDescriptionAction, 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<CartDiscountSetDescriptionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-