Class CartDiscountChangeStackingModeActionBuilder
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountChangeStackingModeActionBuilder
- All Implemented Interfaces:
Builder<CartDiscountChangeStackingModeAction>
public class CartDiscountChangeStackingModeActionBuilder
extends Object
implements Builder<CartDiscountChangeStackingModeAction>
CartDiscountChangeStackingModeActionBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartDiscountChangeStackingModeAction with checking for non-null required valuesbuilds CartDiscountChangeStackingModeAction without checking for non-null required valuesNew value to set.of()
factory method for an instance of CartDiscountChangeStackingModeActionBuilderof
(CartDiscountChangeStackingModeAction template) create builder for CartDiscountChangeStackingModeAction instancestackingMode
(StackingMode stackingMode) New value to set.
-
Constructor Details
-
CartDiscountChangeStackingModeActionBuilder
public CartDiscountChangeStackingModeActionBuilder()
-
-
Method Details
-
stackingMode
New value to set.
- Parameters:
stackingMode
- value to be set- Returns:
- Builder
-
getStackingMode
New value to set.
- Returns:
- stackingMode
-
build
builds CartDiscountChangeStackingModeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartDiscountChangeStackingModeAction>
- Returns:
- CartDiscountChangeStackingModeAction
-
buildUnchecked
builds CartDiscountChangeStackingModeAction without checking for non-null required values- Returns:
- CartDiscountChangeStackingModeAction
-
of
factory method for an instance of CartDiscountChangeStackingModeActionBuilder- Returns:
- builder
-
of
public static CartDiscountChangeStackingModeActionBuilder of(CartDiscountChangeStackingModeAction template) create builder for CartDiscountChangeStackingModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-