Interface CartDiscountChangeStackingModeAction
- All Superinterfaces:
CartDiscountUpdateAction
,ResourceUpdateAction<CartDiscountUpdateAction>
CartDiscountChangeStackingModeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountChangeStackingModeAction cartDiscountChangeStackingModeAction = CartDiscountChangeStackingModeAction.builder()
.stackingMode(StackingMode.STACKING)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountChangeStackingModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountChangeStackingModeActionbuilder
(CartDiscountChangeStackingModeAction template) create builder for CartDiscountChangeStackingModeAction instancedeepCopy
(CartDiscountChangeStackingModeAction template) factory method to create a deep copy of CartDiscountChangeStackingModeAction@NotNull StackingMode
New value to set.of()
factory methodof
(CartDiscountChangeStackingModeAction template) factory method to create a shallow copy CartDiscountChangeStackingModeActionvoid
setStackingMode
(StackingMode stackingMode) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountChangeStackingModeAction>
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
-
CHANGE_STACKING_MODE
discriminator value for CartDiscountChangeStackingModeAction- See Also:
-
-
Method Details
-
getStackingMode
New value to set.
- Returns:
- stackingMode
-
setStackingMode
New value to set.
- Parameters:
stackingMode
- value to be set
-
of
factory method- Returns:
- instance of CartDiscountChangeStackingModeAction
-
of
factory method to create a shallow copy CartDiscountChangeStackingModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartDiscountChangeStackingModeAction deepCopy(@Nullable CartDiscountChangeStackingModeAction template) factory method to create a deep copy of CartDiscountChangeStackingModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountChangeStackingModeAction- Returns:
- builder
-
builder
static CartDiscountChangeStackingModeActionBuilder builder(CartDiscountChangeStackingModeAction template) create builder for CartDiscountChangeStackingModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountChangeStackingModeAction
default <T> T withCartDiscountChangeStackingModeAction(Function<CartDiscountChangeStackingModeAction, 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<CartDiscountChangeStackingModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-