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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartDiscountChangeStackingModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartDiscountChangeStackingModeActionbuilder(CartDiscountChangeStackingModeAction template) create builder for CartDiscountChangeStackingModeAction instancecopyDeep()deepCopy(CartDiscountChangeStackingModeAction template) factory method to create a deep copy of CartDiscountChangeStackingModeAction@NotNull StackingModeNew value to set.of()factory methodof(CartDiscountChangeStackingModeAction template) factory method to create a shallow copy CartDiscountChangeStackingModeActionvoidsetStackingMode(StackingMode stackingMode) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountChangeStackingModeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
getAction, withCartDiscountUpdateActionMethods 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
-
copyDeep
CartDiscountChangeStackingModeAction copyDeep()- Specified by:
copyDeepin interfaceCartDiscountUpdateAction
-
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
-